|Summary:||glibc `locale -a` output does not exactly match between locale-archive and langpacks.|
|Product:||[Fedora] Fedora||Reporter:||Pravin Satpute <psatpute>|
|Component:||glibc||Assignee:||Carlos O'Donell <codonell>|
|Status:||NEW ---||QA Contact:||Fedora Extras Quality Assurance <extras-qa>|
|Version:||rawhide||CC:||arjun.is, codonell, dj, fweimer, i18n-bugs, jakub, law, mfabian, pfrankli, sid, smaitra|
|Target Milestone:||---||Keywords:||FutureFeature, i18n|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|:||1627016 (view as bug list)||Environment:|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Bug Depends On:|
Description Pravin Satpute 2016-04-12 18:33:27 UTC
Description of problem: 1. dnf install glibc-all-langpacks 2. locale -a|grep mr mr_IN mr_IN.utf8 1. dnf remove glibc-all-langpacks, dnf install glibc-langpack-mr locale -a|grep mr mr_IN Missing mr_IN.utf I am not sure about usage of mr_IN.utf8, but this is more issue from backward compatibility side. Version-Release number of selected component (if applicable): glibc-2.23.1-5.fc24.x86_64 How reproducible: Everytime Steps to Reproduce: 1. Install glibc-langpack-mr 2. locale -a|grep mr Actual results: List only - mr_IN Expected results: As a backward compatibility, It should list both mr_IN mr_IN.alias Additional info: It its redundant and no use, feel free to close as NOTABUG :)
Comment 1 Carlos O'Donell 2016-04-12 19:26:57 UTC
The only supported locale is mr_IN, and it is always UTF-8. Therefore mr_IN and mr_IN.utf8 are identical. I agree that we should have exactly the same locales in both cases. There appears to be a slight difference in the locale-archive versus locale files cases and we need to track that down. Mike, Any ideas?
Comment 2 Carlos O'Donell 2016-04-12 19:27:59 UTC
To be clear we should either have: (a) Both mr_IN and mr_IN.utf8 with locale-archive and without. or (b) Only mr_IN with locale-archive adn without. A consistent set of visible locales for both cases outlined in comment #0.
Comment 3 Mike FABIAN 2016-04-12 20:14:31 UTC
When the archive is created, mr_IN.utf8 is added as a sort of alias for mr_IN. One can get the same effect for the folder by using symbolic links. Like this: [mfabian@Fedora-Workstation-netinst-x86_6 ~]$ cd /usr/lib/locale/ [mfabian@Fedora-Workstation-netinst-x86_6 locale]$ sudo ln -s mr_IN mr_IN.utf-8[sudo] mfabian のパスワード: [mfabian@Fedora-Workstation-netinst-x86_6 locale]$ locale -a | grep ^mr mr_IN mr_IN.utf-8 [mfabian@Fedora-Workstation-netinst-x86_6 locale]$ I could improve the glibc.spec to package such symlinks for all cases where this makes a difference. Another option would be to edit the SUPPORTED file. For example, for German it contains: de_AT.UTF-8/UTF-8 \ de_AT/ISO-8859-1 \ de_AT@euro/ISO-8859-15 \ de_BE.UTF-8/UTF-8 \ de_BE/ISO-8859-1 \ de_BE@euro/ISO-8859-15 \ de_CH.UTF-8/UTF-8 \ de_CH/ISO-8859-1 \ de_DE.UTF-8/UTF-8 \ de_DE/ISO-8859-1 \ de_DE@euro/ISO-8859-15 \ de_LU.UTF-8/UTF-8 \ de_LU/ISO-8859-1 \ de_LU@euro/ISO-8859-15 \ For the lines which do not have an encoding before the /, in this case de_DE/ISO-8859-1 for example, locale-archive will contain 2 entries, de_DE *and* de_DE.iso88591 which is then listed by "locale -a". But when the folders are used, only the de_DE folder exists. So either create such symbolic links for all lines in SUPPORTED which do not have an encoding before / (a little bit of scripting and macros ...), *or* edit SUPPORTED to *always* have an encoding before /, i.e. change de_DE/ISO-8859-1 into de_DE.ISO-8859-1/ISO-8859-1 In the latter case, locale archive would list only de_DE.iso88591 and the folder created would be /usr/lib/locale/de_DE.iso88591 so in case of the folders "locale -a" would list the same. But in the latter case, the "locale -a" list would be a bit shorter then it used to be because the duplicates would be missing in the list. Would that cause backward compatibility problems? If we want the same list as it always was, we could create the symbolic links to list the duplicates in the folder case as well.
Comment 4 Fedora End Of Life 2017-07-25 20:32:15 UTC
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Comment 5 Florian Weimer 2017-07-27 11:16:38 UTC
glibc-2.25.90-27.fc27.x86_64 is still inconsistent.
Comment 6 Jan Kurik 2017-08-15 07:24:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle. Changing version to '27'.
Comment 7 Jan Kurik 2018-08-14 11:00:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'.
Comment 8 Carlos O'Donell 2018-10-15 16:22:44 UTC
The real solution here is to create the symlinks in /usr/lib/locale that match exactly what the locale-archive is displaying. Mike, if you get a chance, please feel free to go in that direction to fix this difference between langpacks and locale-archive.
Comment 9 Jens Petersen 2019-03-18 09:19:53 UTC
Can we fix this for F31?