[Bug 254472] New: ddd shows problems due to umlaut characters with default LANG setting
https://bugzilla.novell.com/show_bug.cgi?id=254472 Summary: ddd shows problems due to umlaut characters with default LANG setting Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: pgunreben@lucent.com QAContact: qa@suse.de When configuring the system to for English (US) language, the ddd does not work properly. In this case, ddd gets into trouble after umlaut (äöüÄÖÜß) characters. The most severe problems are: 1) The source code is not shown properly after umlaut characters and the setting of breakpoints fails or is not shown correctly. 2) The DDD reference doesn't work: Only the first part up to the first umlaut is shown correctly and navigation thereafter is not possible. Yast has set my LANG variable to en_US.UTF-8, which seems to cause this trouble. This problem doesn't occur, when setting LANG=en_US, but also occurs with LANG=de_DE.UTF-8. You can see these problems in the console window after starting ddd, where the introduction text is truncated at the ü of Dorothea Lütkehaus. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 anosek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #1 from anosek@novell.com 2007-05-07 12:19 MST ------- Thank you for the report. ddd has problems with displaying utf8 strings. More info can be found in bug #187447. As it is too complicated to fix this issue we won't fix it. Please use proposed workaround (using LANG=en_US instead of en_US.UTF-8). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 ------- Comment #2 from pgunreben@lucent.com 2007-05-07 19:34 MST ------- Wouldn't it be possible to either 1) issue a warning if an incompatible LANG setting is used or to 2) use a wrapper script for the start of ddd to correct the LANG setting if necessary? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 ------- Comment #3 from anosek@novell.com 2007-05-21 03:02 MST ------- Thanks for the proposals. I think the script for automatic detection would be too complicated and breakable. But I added README.SUSE with description of the workaround. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 lrupp@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | ------- Comment #4 from lrupp@novell.com 2007-05-21 04:58 MST ------- Perhaps something like this small wrapper script can do the job? -------------------------[schnipp] #!/bin/bash # case "`locale charmap 2>/dev/null`" in UTF-8) LANG=${LANGUAGE-${LC_ALL-${LC_MESSAGES-${LANG}}}} export LC_ALL=${LANG%%.*} ;; esac exec /usr/bin/ddd.org -------------------------[schnapp] It's untested with ddd - but should work. Perhaps someone can give it a try - and we can use it as wrapper for ddd _and_ provide an additional README.SUSE where the reason is explained? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 lrupp@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |pgunreben@lucent.com ------- Comment #5 from lrupp@novell.com 2007-05-21 05:00 MST ------- Peter, can you test the script (the original ddd has to be renamed to ddd.org in the above case) and report if this also fixes your problem? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 ------- Comment #6 from mfabian@novell.com 2007-05-21 07:07 MST ------- Probably it is better to use the following script: -------------------------[schnipp] #!/bin/bash # case "`locale charmap 2>/dev/null`" in UTF-8) tmplang=${LC_ALL-${LC_CTYPE-${LANG-POSIX}}} export LC_ALL=${tmplang%%.*} ;; esac exec /usr/bin/ddd.org -------------------------[schnapp] (Use LC_CTYPE instead of LC_MESSAGES because LC_CTYPE is responsible for the encoding used, LC_MESSAGES only for the language of the user interface. LANGUAGE is a GNU extension which is also only for the language of the user interface). On top of that I thought that it might be saver not to change the value of LANG at all, even if it is not exported it is handled specially in bash. Therefore I used a new variable "tmplang". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 pgunreben@lucent.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|pgunreben@lucent.com | ------- Comment #7 from pgunreben@lucent.com 2007-05-21 07:23 MST ------- Yes, this script fixes my problem. Thanks a lot! We should also pass on the command line parameters to ddd via $* : -------------------------[schnipp] #!/bin/bash # case "`locale charmap 2>/dev/null`" in UTF-8) tmplang=${LC_ALL-${LC_CTYPE-${LANG-POSIX}}} export LC_ALL=${tmplang%%.*} ;; esac exec /usr/bin/ddd.org $* -------------------------[schnapp] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 ------- Comment #8 from mmarek@novell.com 2007-05-21 07:41 MST ------- Or exec /usr/bin/ddd.org "$@" (you never know when you might need to debug a binary with spaces in name ;)) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=254472 anosek@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED ------- Comment #9 from anosek@novell.com 2007-05-29 02:53 MST ------- Thank you for the proposed wrapper script. I added it into the Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com