Bug 928729 - Broken locale no_NO.ISO-8859-1
Summary: Broken locale no_NO.ISO-8859-1
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 971416
TreeView+ depends on / blocked
 
Reported: 2013-03-28 10:23 UTC by Remi Collet
Modified: 2016-11-24 12:25 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-02-17 14:55:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Remi Collet 2013-03-28 10:23:28 UTC
Issue detected by a php unit test which try to do a setlocale on all available locales, and fails in f19/f20.

In Fedora 17 (glibc 2.15), Fedora 18 (glibc 2.16)

$ locale -a | grep no_NO
no_NO
no_NO.iso88591
no_NO.utf8

In Fedora 19 (glibc 2.17)

$ locale -a | grep no_NO
no_NO
no_NO.ISO-8859-1

Calling setlocale(LC_ALL, "no_NO.ISO-8859-1") fails.

Comment 1 Carlos O'Donell 2013-06-06 16:29:37 UTC
Works fine for me on f17.

[carlos@koi glibc]$ cat test.c
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>

int
main (void)
{
  char *ret;
  ret = setlocale(LC_ALL, "no_NO.iso88591");
  if (ret == NULL)
    perror ("setlocale");
  else
    printf ("%s\n", ret);
  return 0;
}
[carlos@koi glibc]$ gcc -Wall -pedantic -o test test.c
[carlos@koi glibc]$ ./test
no_NO.iso88591

Please provide a full test case.

Please be warned that no_NO is a legacy locale. You should be using nb_NO (since 2003).

Comment 2 Remi Collet 2013-06-06 16:32:27 UTC
Yes F <= 18 works fine.
It's F >= 19 and "no_NO.ISO-8859-1" which is broken.

Comment 3 Carlos O'Donell 2013-06-06 17:03:21 UTC
(In reply to Remi Collet from comment #2)
> Yes F <= 18 works fine.
> It's F >= 19 and "no_NO.ISO-8859-1" which is broken.

Thanks for confirming.

This looks like a locale.alias processing issue.

f19 doesn't have no_NO.ISO-8859-1, it aliases it to nb_NO.ISO-8859-1.

We need to fix the broken alias processing.

Comment 5 Fedora End Of Life 2015-01-09 17:49:47 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

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 19 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 6 Fedora End Of Life 2015-02-17 14:55:01 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.