Når eg skriv kommandoen «date», anten på mi Mandriva-maskin eller på ei Fedora 6-maskin, får eg datoen ut på formatet
to aug 2 20:08:59 CEST 2007
Dette er heilt klart ikkje norsk måte å skriva datoar på! Kva får de brukarar av andre Linux-distribusjonar, og korleis kan me fiksa dette?
[Karl Ove Hufthammer]
Dette er heilt klart ikkje norsk måte å skriva datoar på! Kva får de brukarar av andre Linux-distribusjonar, og korleis kan me fiksa dette?
Se URL:http://bugs.skolelinux.no/show_bug.cgi?id=102 for litt av historien. Jeg kommer ikke til å jobbe med å få fikset det med det første, og overlater det til andre.
Vennlig hilsen,
Den Thursday 02 August 2007 20:22:24 skrev Petter Reinholdtsen:
[Karl Ove Hufthammer]
Dette er heilt klart ikkje norsk måte å skriva datoar på! Kva får de brukarar av andre Linux-distribusjonar, og korleis kan me fiksa dette?
Se URL:http://bugs.skolelinux.no/show_bug.cgi?id=102 for litt av historien. Jeg kommer ikke til å jobbe med å få fikset det med det første, og overlater det til andre.
I tried to fix the date issue in the norwegian locales. The output from showdates.sh is now:
showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Man. 6. aug 16:56:33 CEST 2007 Må. 6. aug 16:56:33 CEST 2007 Format '+%c' 06. aug 2007 kl. 16.56 CEST 06. aug 2007 kl. 16.56 CEST Format '+%x' 06. aug. 2007 06. aug. 2007 Format '+%X' kl. 16.56 CEST kl. 16.56 CEST
Is this correct, or should something be changed?
* Børre Gaup boerre@skolelinux.no [2007-08-06]:
Den Thursday 02 August 2007 20:22:24 skrev Petter Reinholdtsen:
[Karl Ove Hufthammer]
Dette er heilt klart ikkje norsk måte å skriva datoar på! Kva får de brukarar av andre Linux-distribusjonar, og korleis kan me fiksa dette?
Se URL:http://bugs.skolelinux.no/show_bug.cgi?id=102 for litt av historien. Jeg kommer ikke til å jobbe med å få fikset det med det første, og overlater det til andre.
I tried to fix the date issue in the norwegian locales. The output from showdates.sh is now:
showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Man. 6. aug 16:56:33 CEST 2007 Må. 6. aug 16:56:33 CEST 2007 Format '+%c' 06. aug 2007 kl. 16.56 CEST 06. aug 2007 kl. 16.56 CEST Format '+%x' 06. aug. 2007 06. aug. 2007 Format '+%X' kl. 16.56 CEST kl. 16.56 CEST
Is this correct, or should something be changed?
Hm, I can't see that someone has replied to this?
As stated in the bug report http://bugs.skolelinux.no/show_bug.cgi?id=102#c1 all days should be two letters and a period and all months (except Mars, april, mai, juni og juli) should be three letters and a period. The new link to the FAQ:
http://www.sprakrad.no/Raad/Spoersmaal_og_svar/#maaned
If I try to use this knowledge the correct output should have been
# showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Ma. 6. aug. 16:56:33 CEST 2007 Må. 6. aug. 16:56:33 CEST 2007 Format '+%c' 06. aug. 2007 kl. 16.56 CEST 06. aug. 2007 kl. 16.56 CEST [cut the two last formats which seems to be correct]
Hans
PS! Please correct me if I'm wrong, Karl Ove :-)
Hans F. Nordhaug:
If I try to use this knowledge the correct output should have been
# showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Ma. 6. aug. 16:56:33 CEST 2007 Må. 6. aug. 16:56:33 CEST 2007 Format '+%c' 06. aug. 2007 kl. 16.56 CEST 06. aug. 2007 kl. 16.56 CEST [cut the two last formats which seems to be correct]
Hans
PS! Please correct me if I'm wrong, Karl Ove :-)
You’re wrong, Hans Fredrik. :-)
There should be only space between ‘Ma.’/‘Må.’ and ‘6’, and the time should use a ‘.’, not a ‘:’ in the first example.
On Tue, Aug 14, 2007 at 01:05:56PM +0200, Hans F. Nordhaug wrote:
- Børre Gaup boerre@skolelinux.no [2007-08-06]:
Den Thursday 02 August 2007 20:22:24 skrev Petter Reinholdtsen:
[Karl Ove Hufthammer]
Dette er heilt klart ikkje norsk måte å skriva datoar på! Kva får de brukarar av andre Linux-distribusjonar, og korleis kan me fiksa dette?
Se URL:http://bugs.skolelinux.no/show_bug.cgi?id=102 for litt av historien. Jeg kommer ikke til å jobbe med å få fikset det med det første, og overlater det til andre.
I tried to fix the date issue in the norwegian locales. The output from showdates.sh is now:
showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Man. 6. aug 16:56:33 CEST 2007 Må. 6. aug 16:56:33 CEST 2007 Format '+%c' 06. aug 2007 kl. 16.56 CEST 06. aug 2007 kl. 16.56 CEST Format '+%x' 06. aug. 2007 06. aug. 2007 Format '+%X' kl. 16.56 CEST kl. 16.56 CEST
Is this correct, or should something be changed?
Hm, I can't see that someone has replied to this?
As stated in the bug report http://bugs.skolelinux.no/show_bug.cgi?id=102#c1 all days should be two letters and a period and all months (except Mars, april, mai, juni og juli) should be three letters and a period. The new link to the FAQ:
http://www.sprakrad.no/Raad/Spoersmaal_og_svar/#maaned
If I try to use this knowledge the correct output should have been
# showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Ma. 6. aug. 16:56:33 CEST 2007 Må. 6. aug. 16:56:33 CEST 2007 Format '+%c' 06. aug. 2007 kl. 16.56 CEST 06. aug. 2007 kl. 16.56 CEST [cut the two last formats which seems to be correct]
Hans
PS! Please correct me if I'm wrong, Karl Ove :-)
I belive you are wrong. The abbreviated names should be of equal lenght, for posiz and ISO TR 14652 locales. And the style for the abrreviated names for POSIX and 14652 is that no period is used. The abbreviated names are ment for things like file listings (ls) logs etc, and there it is essential that the names are of equal lenght.
Best regards keld
Keld Jørn Simonsen:
I belive you are wrong. The abbreviated names should be of equal lenght, for posiz and ISO TR 14652 locales. And the style for the abrreviated names for POSIX and 14652 is that no period is used. The abbreviated names are ment for things like file listings (ls) logs etc, and there it is essential that the names are of equal lenght.
I am not sure I understand. The abbreviated dates will still all be of the same length if you use one space instead of two.
* Keld Jørn Simonsen keld@dkuug.dk [2007-08-14]:
On Tue, Aug 14, 2007 at 01:05:56PM +0200, Hans F. Nordhaug wrote:
- Børre Gaup boerre@skolelinux.no [2007-08-06]:
Den Thursday 02 August 2007 20:22:24 skrev Petter Reinholdtsen:
[Karl Ove Hufthammer]
Dette er heilt klart ikkje norsk måte å skriva datoar på! Kva får de brukarar av andre Linux-distribusjonar, og korleis kan me fiksa dette?
Se URL:http://bugs.skolelinux.no/show_bug.cgi?id=102 for litt av historien. Jeg kommer ikke til å jobbe med å få fikset det med det første, og overlater det til andre.
I tried to fix the date issue in the norwegian locales. The output from showdates.sh is now:
showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Man. 6. aug 16:56:33 CEST 2007 Må. 6. aug 16:56:33 CEST 2007 Format '+%c' 06. aug 2007 kl. 16.56 CEST 06. aug 2007 kl. 16.56 CEST Format '+%x' 06. aug. 2007 06. aug. 2007 Format '+%X' kl. 16.56 CEST kl. 16.56 CEST
Is this correct, or should something be changed?
Hm, I can't see that someone has replied to this?
As stated in the bug report http://bugs.skolelinux.no/show_bug.cgi?id=102#c1 all days should be two letters and a period and all months (except Mars, april, mai, juni og juli) should be three letters and a period. The new link to the FAQ:
http://www.sprakrad.no/Raad/Spoersmaal_og_svar/#maaned
If I try to use this knowledge the correct output should have been
# showdates.sh nb_NO.UTF-8 nn_NO.UTF-8 Format '' Ma. 6. aug. 16:56:33 CEST 2007 Må. 6. aug. 16:56:33 CEST 2007 Format '+%c' 06. aug. 2007 kl. 16.56 CEST 06. aug. 2007 kl. 16.56 CEST [cut the two last formats which seems to be correct]
Hans
PS! Please correct me if I'm wrong, Karl Ove :-)
I belive you are wrong. The abbreviated names should be of equal lenght, for posiz and ISO TR 14652 locales. And the style for the abrreviated names for POSIX and 14652 is that no period is used. The abbreviated names are ment for things like file listings (ls) logs etc, and there it is essential that the names are of equal lenght.
OK, I don't know POSIX and the ISO you point to, but they apparently conflict with the Norwegian standard rules for writing. I'll leave the floor ...
Hans
PS! Your wrote "The abbreviated names should be of equal lenght". Are you thinking about the difference between day and month names, or the months names - "aug." vs "mars"? I assume that if POSIX requires the period to be left out, we should use "aug" and "mar"? And now I promise to shut-up.
PS! I have a feeling this has been discussed before - maybe when the bug report was created?