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

Re: Locale codeset UTF-8 vs. utf8



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


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