Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15825 - [initscripts] utf8 / UTF-8 inconsistency

Attached to Project: Arch Linux
Opened by mattia (nTia89) - Thursday, 06 August 2009, 08:12 GMT
Last edited by Allan McRae (Allan) - Friday, 07 August 2009, 11:45 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Dan McGee (toofishes)
Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 2009.08-RC
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

in rc.conf says: it_IT.utf8

but in locale.gen there is: it_IT.UTF8
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 07 August 2009, 11:45 GMT
Reason for closing:  Implemented
Additional comments about closing:  pushed to initscripts git
Comment by Allan McRae (Allan) - Thursday, 06 August 2009, 08:38 GMT
Um... there is no it_IT.* entry in rc.conf by default. So, did you put it there?
Comment by mattia (nTia89) - Thursday, 06 August 2009, 08:40 GMT
is an example i want only highlight this:

utf8 <---------> UTF8
Comment by Gerhard Brauer (GerBra) - Thursday, 06 August 2009, 08:50 GMT
Upper/lowercase seems not to matter here. We always have in rc.conf the notation with lowercase utf8.
On my local machine for ex. i have:
$ grep de_DE /etc/locale.gen
de_DE.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15

And in rc.conf:
LOCALE="de_DE.utf8"

Edit: please also note the differences: In locale.gen the notation is with a hyphen
it_IT.UTF-8 UTF-8 (locale.gen)
the locale setting during rc.conf is with: it_IT.utf8

Comment by Gerhard Brauer (GerBra) - Thursday, 06 August 2009, 13:10 GMT
I reopended this. This is not an AIF or archiso related report. During installation AIF doesn't set the LOCALE var, it uses the one from the base rc.conf from package initscripts.
Therein the LOCALE is preset with: en_US.utf8 (utf8 here is the codeset).

Locale's codeset could have different notations, but they get all aliased to UTF-8. Ex:
$ LC_ALL=de_DE.UTF-8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"
$ LC_ALL=de_DE.utf8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"
$ LC_ALL=de_DE.UTF_8 locale -k LC_CTYPE | grep charmap
charmap="UTF-8"

So it's may worth for unification to set this preset to the same as the locale.gen notation.
I assign this to initscripts maintainer as a feature request.


Comment by Allan McRae (Allan) - Thursday, 06 August 2009, 13:19 GMT
Adding Thomas and Aaron.
Comment by Aaron Griffin (phrakture) - Thursday, 06 August 2009, 17:57 GMT
Haha Dan and I had an argument about this once. I was on the side of "UTF-8" because of locale.gen, he was on the side of "utf8". I can't remember the proofs, but we basically found nothing at all was consistent here.

Adding Dan to see if he remembers anything
Comment by Dan McGee (toofishes) - Thursday, 06 August 2009, 18:59 GMT
I don't remember anything offhand, sorry. I will say this bug report is more of a "won't fix" than anything else though- isn't everyone free to update their rc.conf?
Comment by Aaron Griffin (phrakture) - Thursday, 06 August 2009, 19:08 GMT
Well, I think it's more of a "be consistent off the bat, please" thing.

Switching the default rc.conf to use UTF-8 is pretty much all we need to do to satisfy this, correct?

Loading...