Bug 73 - Locales nb_NO and nn_NO should have common date format strings
Summary: Locales nb_NO and nn_NO should have common date format strings
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Petter Reinholdtsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-11 15:44 UTC by Petter Reinholdtsen
Modified: 2019-04-10 12:20 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Norwegian bokmaal locale which fixes the problem described (1.98 KB, text/plain)
2007-08-07 14:04 UTC, Børre Gaup
Details
Norwegian nynorsk locale which fixes the problem described (1.37 KB, text/plain)
2007-08-07 14:05 UTC, Børre Gaup
Details
Added NO-BREAK SPACE as thousand delimiter (1.98 KB, text/plain)
2007-08-07 15:00 UTC, Børre Gaup
Details
Added NO-BREAK SPACE as thousand delimiter (1.37 KB, text/plain)
2007-08-07 15:01 UTC, Børre Gaup
Details
Yet another edition that fixes the issues the last poster had (1.30 KB, text/plain)
2007-08-15 16:24 UTC, Børre Gaup
Details
Fixes the issues the last reporter had (1.98 KB, text/plain)
2007-08-15 16:26 UTC, Børre Gaup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petter Reinholdtsen 2004-03-11 15:44:16 UTC
The locales for Norwegian Bokmål and Norwegian Nynorsk should have the
same date formats.  This small script demonstrating that the formats
are different:

% cat showdates.sh
#!/bin/sh

for fmt in "" "+%c" "+%x" "+%X" ; do
    echo "Format '$fmt'"
    for locale in $* ; do
      LANG=$locale date $fmt | sed 's/^/  /'
    done
done
% sh showdates.sh
 nb_NO nn_NO
Format ''
  tor apr  3 16:44:26 CEST 2003
  to  apr  3 16:44:26 CEST 2003
Format '+%c'
  tor 03-04-2003 16:44:26 CEST
  03. apr 2003 kl 16.44 CEST
Format '+%x'
  03-04-2003
  03. apr 2003
Format '+%X'
  16:44:26
  kl 16.44 CEST

I'm trying to find references document what the formats should be.
Comment 1 Ulrich Drepper 2005-10-14 20:25:48 UTC
Well, what is it then?  Filing a bug without an answer is not a good thing.
Comment 2 Dwayne Grant McConnell 2006-02-21 16:56:11 UTC
Do you have a patch for this problem?
Comment 3 Ulrich Drepper 2006-08-28 05:58:22 UTC
I'm closing this now.  No answer in 2.5 years.
Comment 4 Børre Gaup 2007-08-07 14:04:37 UTC
Created attachment 1949 [details]
Norwegian bokmaal locale which fixes the problem described
Comment 5 Børre Gaup 2007-08-07 14:05:43 UTC
Created attachment 1950 [details]
Norwegian nynorsk locale which fixes the problem described
Comment 6 Børre Gaup 2007-08-07 14:06:39 UTC
Here are locales which fix the date issue described, therefore reopening the 
bug.
Comment 7 Børre Gaup 2007-08-07 15:00:48 UTC
Created attachment 1951 [details]
Added NO-BREAK SPACE as thousand delimiter
Comment 8 Børre Gaup 2007-08-07 15:01:41 UTC
Created attachment 1952 [details]
Added NO-BREAK SPACE as thousand delimiter
Comment 9 Karl Ove Hufthammer 2007-08-12 13:15:32 UTC
If the output of the latest patch is as mention in
http://bugs.skolelinux.no/show_bug.cgi?id=102 it is still not correct.
Comment 10 Børre Gaup 2007-08-15 16:24:41 UTC
Created attachment 1969 [details]
Yet another edition that fixes the issues the last poster had

Fixes the issues mentioned by Karl Ove Hufthammer
Comment 11 Børre Gaup 2007-08-15 16:26:02 UTC
Created attachment 1970 [details]
Fixes the issues the last reporter had

Same fix for nb_NO as for nn_NO
Comment 12 Morten Nilsen 2007-09-17 13:52:46 UTC
The official standard is %d.%m.%Y while %Y-%m-%d is allowable for international
correspondence.

The site referenced below also states that the format "%d. %B %Y" is more
regular in use for written text.

ref.: http://www.språkrådet.no/templates/Page.aspx?id=634#dato
Comment 13 Ulrich Drepper 2007-10-07 22:10:43 UTC
I should have just ignored the patches since you deliberately changed the files
from a valid format to some garbage.  And you added Debian crap in the contact
information.  But instead I wasted time and fixed the files myself.