Bug 10425 - it_IT/it_CH: LC_TIME format is wrong
Summary: it_IT/it_CH: LC_TIME format is wrong
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2009-07-21 12:42 UTC by Nicolo' Chieffo
Modified: 2016-01-07 22:53 UTC (History)
2 users (show)

See Also:
Last reconfirmed:
fweimer: security-

italy.patch (279 bytes, patch)
2009-07-21 15:39 UTC, Nicolo' Chieffo
Details | Diff
italian.patch (298 bytes, patch)
2009-10-09 19:02 UTC, Nicolo' Chieffo
Details | Diff
lc_time_italian.patch (439 bytes, patch)
2010-07-17 11:34 UTC, Nicolo' Chieffo
Details | Diff
lc_time_italian.patch (674 bytes, patch)
2010-09-24 19:14 UTC, Nicolo' Chieffo
Details | Diff
lc_time_italian.patch (694 bytes, patch)
2010-09-24 19:17 UTC, Nicolo' Chieffo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolo' Chieffo 2009-07-21 12:42:08 UTC
Accordingly to this file [1] and also because I'm Italian, I've seen
an error in the way the date is displayed in linux.
The correct formati for Italian speakers is:
day_name day_number month_name year HH:MM:SS

in the LC_TIME date_fmt things are really mixed up and should be changed to:
%a %e %b %Y, %H:%M:%S, %Z

Comment 1 Nicolo' Chieffo 2009-07-21 14:07:08 UTC
popular Italian newspaper: http://www.corriere.it
the date is under the title "CORRIERE DELLA SERA", in the middle
Comment 2 Nicolo' Chieffo 2009-07-21 15:39:38 UTC
Created attachment 4070 [details]

possible patch, that swaps the fields. It does not add the "," since I don't
know if it must be added or not
Comment 3 Nicolo' Chieffo 2009-08-19 12:56:44 UTC
Is this the correct place, or should I ask in another bugzilla?
Comment 4 Nicolo' Chieffo 2009-09-11 09:31:31 UTC
I'm sorry to ping you again, but I think this is an important and very simple
bug that can be fixed in 2 minutes, and a patch is present. It just needs your
Comment 5 Nicolo' Chieffo 2009-10-09 19:02:16 UTC
Created attachment 4263 [details]

This is the correct format (note that : is now .)
updated patch accordingly.

"%a %e %b %Y, %H.%M.%S, %Z"

Now you just need to commit
Comment 6 Nicolo' Chieffo 2009-10-17 07:42:01 UTC
Is this bugzilla dead??
Comment 7 Ulrich Drepper 2009-10-30 05:49:44 UTC
I've added the changes.
Comment 8 Nicolo' Chieffo 2010-07-17 11:34:42 UTC
Created attachment 4879 [details]

New patch.
Just a question: what's the differnce betwen date_fmt and d_t_fmt?
Comment 9 Petr Baudis 2010-09-21 15:05:53 UTC
What are you changing again and why with this new patch? Can you add a changelog
entry too?
Comment 10 Nicolo' Chieffo 2010-09-21 22:08:05 UTC
I'll answer tomorrow, since I have to look back at the patch because I forgot
the changelog.

Can you tell me the difference from date_fmt and d_t_fmt?
Comment 11 Petr Baudis 2010-09-24 09:54:53 UTC
Frankly, I have not been able to figure what date_fmt is good for quickly - its
purpose seems to be the same as d_fmt, but I cannot find it being used anywhere
within glibc...
Comment 12 Andreas Schwab 2010-09-24 10:32:08 UTC
It's the default date(1) format.
Comment 13 Nicolo' Chieffo 2010-09-24 17:36:06 UTC
So there's no reason for them to be different, right?
Comment 14 Nicolo' Chieffo 2010-09-24 19:14:48 UTC
Created attachment 5001 [details]

This patch contains the changelog, and drops the bits for it_CH since I'm from
Italy, not from Switzerland.
Comment 15 Nicolo' Chieffo 2010-09-24 19:15:24 UTC
reopening due to adding the changelog
Comment 16 Nicolo' Chieffo 2010-09-24 19:17:30 UTC
Created attachment 5002 [details]

Sorry, I forgot to add a comment
Comment 17 Roumen Petrov 2010-09-24 20:39:20 UTC
different date and time formats are used depending from format :
% Appropriate date and time representation
date_fmt   ...
% Appropriate date and time representation (%c) with abbreviations
d_t_fmt ...
% Appropriate date representation (%x)
d_fmt  ...
% Appropriate time representation (%X)
t_fmt ...

Comment 18 Nicolo' Chieffo 2010-09-25 08:05:09 UTC
Ok, so I will change date_fmt to not contain abbreviations.
What about the timezone? Should it be present for both date_fmt and d_fmt?