Re: Locale codeset UTF-8 vs. utf8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 05, 2008 at 11:10:59AM +0200, Michael Schwendt wrote:
> The difference in the spelling of the codeset breaks Sylpheed (#450063)
> which only looks for codeset "UTF-8". Now where again is it defined
> that both are valid spellings for the codeset?

Then Sylpheed is just broken.  It shouldn't look at the locale name,
but instead at nl_langinfo (CODESET) (the same can be queried from
locale -k LC_CTYPE | grep ^charmap=
).
And, no matter what spelling you use in the .* part of locale name
in environment, CODESET is the same:

LC_ALL=en_US.UTF-8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"
LC_ALL=en_US.utf8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"
LC_ALL=en_US.utf-8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"
LC_ALL=en_US.UTF_8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"

	Jakub

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux