Bug 52222 (suse37222)

Summary: Dosemu does not work under Turkish language
Product: [openSUSE] openSUSE 10.3 Reporter: Togan Muftuoglu <toganm>
Component: OtherAssignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: bjacke
Version: unspecified   
Target Milestone: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Togan Muftuoglu 2004-03-28 02:38:50 UTC
when the locale is as follows dosemu (and xdosemu) has problems  
beta@meltem:~> locale 
LANG=tr_TR.UTF-8 
LC_CTYPE="tr_TR.UTF-8" 
LC_NUMERIC="tr_TR.UTF-8" 
LC_TIME="tr_TR.UTF-8" 
LC_COLLATE="tr_TR.UTF-8" 
LC_MONETARY="tr_TR.UTF-8" 
LC_MESSAGES="tr_TR.UTF-8" 
LC_PAPER="tr_TR.UTF-8" 
LC_NAME="tr_TR.UTF-8" 
LC_ADDRESS="tr_TR.UTF-8" 
LC_TELEPHONE="tr_TR.UTF-8" 
LC_MEASUREMENT="tr_TR.UTF-8" 
LC_IDENTIFICATION="tr_TR.UTF-8" 
LC_ALL= 
 
this is what the first screen is like 
FreeCom version 0.82 pl 3 XMS_Swap [Mar 06 2004 10:49:37] 
  
Bad command or filename - "UNIX". 
Bad command or filename - "UNIX". 
"Welcome to dosemu !" 
Bad command or filename - "UNIX". 
C:\>                             
 
when wanting to change bin then it can not change to the bin directory 
 
C:\>cd bin 
CHDIR failed for 'bin'. 
 
Also when "exitemu" is type then the message is 
C:\>exitemu 
Bad command or filename - "EXITEMU" 
 
when I start dosemu with "LANG=en_UK.UTF-8 LC_ALL=en_UK.UTF-8 xdosemu " things 
look allright and I can change to the directory 
                        
So there is a problem with case conversion ( my rough guess)
Comment 1 Togan Muftuoglu 2004-03-28 02:38:50 UTC
<!-- SBZ_reproduce  -->
start dosemu or xdosemu with the Turkish locale settings "LANG=tr_TR.UTF-8 
LC_ALL=tr_TR.UTF-8 dosemu" and do the above steps
Comment 2 Michael Gross 2005-10-04 12:40:19 UTC
Hello!

Due to the proposal from Andreas Jaeger, this bug will be closed as WONTFIX,
because there was no change to this bug for more than 2 months by now which
indicates a very low activity. 

If this bug is of relevance for the current release or should be kept open due
to another (not obvious reason), please reopen it ans state a reason for your
decision.

Please also check if the status-information for this bug is correct at all
correct if you reopen it. Generally the product-version should be elevated to
the current release in this case. Sorry if this causes you any inconvenience.

Kind regards,
the BNC-Screening-Team
Comment 3 Bjoern Jacke 2006-06-15 22:33:07 UTC
this is a common bug caused by by being
tolower("I") != "i"
and
toupper("i") != "I"
Same problem with isascii() etc. too in Turkish locales. These functions do not guarantee to be ascii compiant - they are localized, too. Someome should really fix this in dosemu, if I find time I will take a look, too.

Togan: if you have more problems in Turkish locales, please report them in bugzilla...
Comment 4 Bjoern Jacke 2006-06-15 22:36:13 UTC
c
Comment 5 Mike Fabian 2006-06-20 09:37:21 UTC
The problem still exists in the dosemu package in STABLE.
Comment 6 Steffen Winterfeldt 2007-05-14 15:46:54 UTC
Updated to doesemu 1.4.0 in 10.3. Hopefully it's better there.
Comment 7 Mike Fabian 2007-05-16 12:34:05 UTC
No, the problem with the Turkish locale is still there:

    mfabian@shannon:~$ LANG=tr_TR.UTF-8 xdosemu

and then in the dosemu window:

    [...]
    FreeCom version 0.84-pre2 XMS_Swap [Aug 28 2006 00:29:00]
    Bad command or filename - "blaster".
    Bad command or filename - "unix".
    Bad command or filename - "lredir".
    Bad command or filename - "unix".
    "Welcome to dosemu !"
    Bad command or filename - "unix".
    C:\>exitemu
    Bad command or filename - "exitemu".
    C:\>
Comment 8 Steffen Winterfeldt 2007-05-16 12:47:42 UTC
The new package is not even checked-in yet!
Comment 9 Mike Fabian 2007-05-16 13:45:52 UTC
I know, I did build the new package with mbuild and tested.
Comment 10 Steffen Winterfeldt 2007-05-16 14:14:56 UTC
please report it upstream
Comment 11 Mike Fabian 2007-05-16 14:33:00 UTC
Done. Upstream report is here:

https://sourceforge.net/tracker/?func=detail&atid=457447&aid=1720056&group_id=49784
Comment 12 Mike Fabian 2007-05-29 09:55:33 UTC
Comments from upstream:

Date: 2007-05-18 02:26
Sender: bartoldemanProject Admin
Logged In: YES 
user_id=176505
Originator: NO

Fixed; a better patch was applied to SVN, you can obtain the patch via
svn diff -r 1805:1806
https://dosemu.svn.sourceforge.net/svnroot/dosemu/trunk

							

Date: 2007-05-16 20:10
Sender: bartoldemanProject Admin
Logged In: YES 
user_id=176505
Originator: NO

When I used that link I was asked to register, and then it said
"You are not authorized to access bug #52222."
Can something be done about that?

In any case I attached a quick workaround; the problem was that DOS tries
to find CONFIG.SYS which got lower cased to config.sys with a dotless i,
and does not exist. Do you know what happens on a real Turkish DOS system?
There are more left to be done, in particular when dealing with the drive
letter 'i'.

I suspect that for "type config.sys" for all 4 i/I with/without dot
combinations, three should work (all but the one with a dotted uppercase I,
as I suspect that both dotted and non-dotted i get uppercased to the
dotless ASCII I?)

File Added: dotlessi.patch
							
Comment 13 Steffen Winterfeldt 2008-04-14 10:12:29 UTC
sl 11.0: updated to dosemu 1.4.0.1 which fixes this bug