[Bug 309293] New: zypper does its output in utf8 always
https://bugzilla.novell.com/show_bug.cgi?id=309293 Summary: zypper does its output in utf8 always Product: openSUSE 10.3 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse-beta@cboltz.de QAContact: jsrain@novell.com Found By: --- # locale LANG=de_DE@euro [... all other settings are also set to de_DE@euro] # zypper sh zypper> in pinentry * Lese Cache fÌr Repository '10.3 - Main Repository (OSS)' * Lese Cache fÌr Repository '10.3 - Main Repository (NON-OSS)' * Lese Cache fÌr Repository 'inst-source-debug' * Lese Cache fÌr Repository 'Lukas Tinkl Home Project (openSUSE_Factory)' * Lese Cache fÌr Repository '10.3 - Update Repository' * Reading installed packages [100%] [...] zypper> removerepo home:ltinkl * SÀubere Cache fÌr Repository 'Lukas Tinkl Home Project (openSUSE_Factory)' * Entferne Repository 'home:ltinkl' Repository home:ltinkl has been removed. -> the text is printed in utf8, but it should be printed in iso-8859-15. Please add some charset conversion... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |jkupec@novell.com -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jkupec@novell.com |ma@novell.com Status|ASSIGNED |NEW --- Comment #1 from Ján Kupec <jkupec@novell.com> 2007-09-11 07:54:13 MST --- Michael, seems this is caused by libzypp: Gettext.cc 40: ::bind_textdomain_codeset( TEXTDOMAIN, "UTF-8" ); removing that line seems to fix it. See man bind_textdomain_codeset: --- By default, the gettext family of functions returns translated messages in the locale's character encoding, which can be retrieved as nl_langinfo(CODESET). The need for calling bind_textdo‐main_codeset arises for programs which store strings in a locale independent way (e.g. UTF-8) and want to avoid an extra character set conversion on the returned translated messages. --- Maybe we should use that line only if current encoding is UTF-8, otherwise not. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293#c2 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sh@novell.com --- Comment #2 from Michael Andres <ma@novell.com> 2007-09-11 09:01:50 MST --- The line is there because we always deliver UTF-8 to the ncurses/qt. Just removing it will break the UIs. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293#c3 --- Comment #3 from Stefan Hundhammer <sh@novell.com> 2007-09-11 09:13:01 MST --- That won't work. We have UTF-8 everywhere: Just look at the repository data. Everything is encoded in UTF-8. You'll have to explicitly convert everywhere anyway. It's no use restricting this to some data and rely on auto-conversion for others. Just imagine what mess you'll get if you leave the gettext messages in, say, Latin-2 and they get mixed with UTF-8 data from the package DB. It's impossible to untangle that once it's mixed. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293#c4 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmacvicar@novell.com, ma@novell.com --- Comment #4 from Michael Andres <ma@novell.com> 2007-09-12 06:00:17 MST --- So how to solve it? Zypper is able to reset the textdomain_codeset (or we remove the line and the UIs must set utf-8 textdomain_codeset): Translated programm strings will be iso-8859-15, but all translated package/repo data (e.g. EULA) would still be utf-8. -- An other approach might be to stay with zypp delivering utf-8. Zypper had to deliver utf-8 as well. Instead of directly writing to std::cout, zypper could then use a dedicated stream, that internally handles the 'utf-8' -> 'iso-8859-15' conversion. (similar to zypp's logstreams, which internally collect and format the data before they are written to the log). -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=309293#c5 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ma@novell.com |jkupec@novell.com --- Comment #5 from Michael Andres <ma@novell.com> 2007-12-17 04:25:06 MST --- Jano? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=309293#c6 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #6 from Ján Kupec <jkupec@novell.com> 2008-01-08 08:53:22 MST --- I see, OK, i'll take care of it as Michael suggests in comment #4. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=309293 User munderl@tnt.uni-hannover.de added comment https://bugzilla.novell.com/show_bug.cgi?id=309293#c7 Marco Munderloh <munderl@tnt.uni-hannover.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |munderl@tnt.uni-hannover.de --- Comment #7 from Marco Munderloh <munderl@tnt.uni-hannover.de> 2009-01-08 09:10:34 MST --- *** Bug 458067 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=458067 -- 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.
participants (1)
-
bugzilla_noreply@novell.com