[Bug 666565] Re: utf8 charmap in locale name is wrong
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: eglibc (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: vim (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
From the latest comments, I'm unsure about the status. Is there anything else needed to fix this bug? ** Changed in: ubuntu-translations Status: Triaged = Incomplete -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Changed in: ubuntu-translations Importance: High = Low -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
This was fixed in language-selector, which is what I originally reported it against. I'm not sure why it's marked as affecting ubuntu- translations. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
We track all i18n and l10n bugs under the ubuntu-translations project to have a better oversight on them. Thanks a lot for the feedback, marked it as Fix Released there. ** Changed in: ubuntu-translations Status: Incomplete = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
Not going to apply a large Ubuntu specific patch for this in langpack- locales. This should get fixed in upstream glibc or not at all IMHO. ** Changed in: langpack-locales (Ubuntu) Status: New = Won't Fix -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/666565/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:~gunnarhj/ubuntu/lucid/gdm/lucid-backports_sec- update ** Branch linked: lp:~gunnarhj/ubuntu/maverick/gdm/maverick- backports_sec-update -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in Ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:ubuntu/lucid-backports/language-selector ** Branch linked: lp:ubuntu/maverick-backports/language-selector -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:ubuntu/lucid-backports/gdm ** Branch linked: lp:ubuntu/maverick-backports/gdm -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
Fixes of this bug for Lucid and Maverick are now available in official backports packages. To make Synaptic check for backports updates you can do: o System - Administration - Update Manager - Settings... o Select the Updates tab and check the Unsupported updates option. More about Ubuntu backports: https://help.ubuntu.com/community/UbuntuBackports -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch unlinked: lp:~gunnarhj/language-selector/language-menu2 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:~gunnarhj/ubuntu/lucid/language-selector/lucid- backports ** Branch linked: lp:~gunnarhj/ubuntu/maverick/language-selector /maverick-proposed ** Branch linked: lp:~gunnarhj/ubuntu/lucid/gdm/lucid- backports_langfixes ** Branch linked: lp:~gunnarhj/ubuntu/maverick/gdm/maverick- proposed_langfixes -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
This bug was fixed in the package gdm - 2.32.0-0ubuntu8 --- gdm (2.32.0-0ubuntu8) natty; urgency=low [ Gunnar Hjalmarsson ] * debian/patches/36_language_environment_settings.patch: - Use locale names with '.UTF-8' instead of '.utf8' when setting the LC_MESSAGES environment variable (LP: #666565). * debian/patches/40_one_lang_option_per_translation.patch: - Modification of /usr/share/gdm/language-options so an absent translation directory won't cause it to exit. -- Evan Dandrea e...@ubuntu.com Mon, 14 Feb 2011 15:53:38 + ** Changed in: gdm (Ubuntu) Status: In Progress = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
This bug was fixed in the package language-selector - 0.13 --- language-selector (0.13) natty; urgency=low [ Gunnar Hjalmarsson ] * LanguageSelector/gtk/GtkLanguageSelector.py: - Ensure that main or origin country is included when country specific options for a language are shown (LP: #710148). - Do not let an absent translation directory make the program crash (LP: #714093). * data/LanguageSelector.ui: - Shorter label to describe the second tab (LP: #709855). * LanguageSelector/macros.py: - Use locale names with '.UTF-8' instead of '.utf8' when setting LC_* or LANG environment variables (LP: #666565, #700619). Thanks to Lauri Tirkkonen for the patch! -- Evan Dandrea e...@ubuntu.com Mon, 14 Feb 2011 16:13:04 + ** Branch linked: lp:ubuntu/gdm ** Changed in: language-selector (Ubuntu) Status: In Progress = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:ubuntu/language-selector -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:~ubuntu-desktop/gdm/ubuntu -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:language-selector -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:~gunnarhj/language-selector/language-menu2 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
** Branch linked: lp:~gunnarhj/gdm/language-menu2 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
Re: [Bug 666565] Re: utf8 charmap in locale name is wrong
I prefer the canonical names myself (i.e. en_IN rather than en_IN.UTF-8), but either should be OK. Parsing /usr/share/i18n/SUPPORTED is *easier* than parsing the output of 'locale -a', and I think it's safer than trying to draw inferences from details of the latter's output. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
Copied from #ubuntu-devel, for the record: Gunnar Hjalmarsson: Thanks! Then, how about just replacing .utf8 with .UTF-8 to start with, and introduce parsing of .../SUPPORTED later on, if the simplistic solution proves to not suffice? Colin Watson: it would likely be an improvement, at least Gunnar Hjalmarsson: Ok, then I include .utf8 = .UTF-8 in a couple of MPs, so we get it confirmed that it's an improvement, to start with. ** Changed in: language-selector (Ubuntu) Status: New = In Progress ** Changed in: gdm (Ubuntu) Status: New = In Progress -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
As from version 2.32.0-0ubuntu2, gdm (ubuntu) may assign locale name to LC_MESSAGES. ** Also affects: gdm (Ubuntu) Importance: Undecided Status: New ** Changed in: gdm (Ubuntu) Assignee: (unassigned) = Gunnar Hjalmarsson (gunnarhj) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 666565] Re: utf8 charmap in locale name is wrong
There seems to be a consensus of opinion that the encoding part of locale names, that are assigned to the LANG or LC_* environment variables, should be .UTF-8 rather than .utf8. I'm currently working on language-selector and GDM with other language/locale related matters, so I can include the necessary changes in a couple of merge proposals in pipeline. Before I do so, and since I don't have an own idea on to which extent the changes would create new issues, I'd like that someone triages the bug with respect to language-selector and gdm (ubuntu). I'd also need help to draw a conclusion from the reasoning below. On 2011-01-25 12:54, Colin Watson wrote: ... software that parses locale strings in ways that only handle particular spellings of them tend to be buggy in other ways. For example, such buggy software can easily fail to handle LANG=en_IN as a UTF-8 locale, even though it's defined as such in /usr/share/i18n/SUPPORTED (the .UTF-8 suffix is mainly for dealing with locales that previously had a non-UTF-8 version, and some newer locales just went UTF-8 from the start). Doesn't that point towards simply appending .UTF-8 to e.g. en_IN, irrespective of the name according to /usr/share/i18n/SUPPORTED? I did this test: [gunnar@gunnar-laptop ~/sandbox]$ sh $ cat mytest.po msgid hello msgstr hello from India $ dir=/usr/share/locale/en_IN/LC_MESSAGES $ sudo mkdir -p $dir $ sudo msgfmt mytest.po -o $dir/mytest.mo $ LANGUAGE='' $ LC_MESSAGES=en_IN $ echo $( gettext -d mytest hello ) hello from India $ LC_MESSAGES=en_IN.utf8 $ echo $( gettext -d mytest hello ) hello from India $ LC_MESSAGES=en_IN.UTF-8 $ echo $( gettext -d mytest hello ) hello from India $ exit [gunnar@gunnar-laptop ~/sandbox]$ No complaints, and gettext found the Indian 'translation' in all three cases, so en_IN.UTF-8 seems to work. Or would that name cause other apps to fail? Getting back to the original patch, the general idea seems OK to me, but I think it would be helpful for it to take a slightly different approach to implementation. Rather than just appending .UTF-8, I suggest searching /usr/share/i18n/SUPPORTED for a suitable match for the language, country, and variant which has UTF-8 as the second column. That way, language-selector will always select the canonical user-visible name for the locale, even if it's one of the interesting cases such as en_IN where the canonical name doesn't have an encoding suffix. Even if we would go for the canonical names, I don't think it's necessary to parse /usr/share/i18n/SUPPORTED. [gunnar@gunnar-laptop ~]$ locale -a | grep -F en_IN en_IN en_IN.utf8 [gunnar@gunnar-laptop ~]$ As you can see, the special case en_IN is represented by two items in the 'locale -a' output. We ought to be able to make use of that info. This example shows how the English locale names might be grabbed: [gunnar@gunnar-laptop ~]$ sh $ tmp=$( locale -a | grep -xvE C\|POSIX ) $ no_enc=$( echo $tmp | grep -vF .utf8 ) $ for locale in $( echo $tmp | grep -F .utf8 | sed 's/\.utf8//' ) do if ! expr $locale : en /dev/null ; then continue elif expr $no_enc : .*$locale /dev/null ; then echo $locale else echo $( echo $locale | sed -r 's/([^@]+)/\1.UTF-8/' ) fi done en_AG en_AU.UTF-8 en_BW.UTF-8 en_CA.UTF-8 en_DK.UTF-8 en_GB.UTF-8 en_HK.UTF-8 en_IE.UTF-8 en_IN en_NG en_NZ.UTF-8 en_PH.UTF-8 en_SG.UTF-8 en_US.UTF-8 en_ZA.UTF-8 en_ZW.UTF-8 $ exit [gunnar@gunnar-laptop ~]$ As you can see, English locale names for Antigua/Barbuda and Nigeria are the same kind of special cases as en_IN. ** Changed in: language-selector (Ubuntu) Assignee: (unassigned) = Gunnar Hjalmarsson (gunnarhj) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gdm in ubuntu. https://bugs.launchpad.net/bugs/666565 Title: utf8 charmap in locale name is wrong -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs