public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix date_fmt in en_AU locale
@ 2012-04-29 14:48 Aurelien Jarno
  2012-04-30  7:52 ` Petr Baudis
  0 siblings, 1 reply; 3+ messages in thread
From: Aurelien Jarno @ 2012-04-29 14:48 UTC (permalink / raw)
  To: libc-alpha, libc-locales

The date_fmt definition in the en_AU locale displays the month before
the day, which doesn't correspond to the common standards there [1].
The patch below fixes that, which also make the definition consistent
with d_t_fmt.

[1] https://en.wikipedia.org/wiki/Date_and_time_notation_in_Australia


2012-04-29  Aurelien Jarno  <aurelien@aurel32.net>

        * locales/en_AU: Change date_fmt to match Australian standards.

diff --git a/localedata/locales/en_AU b/localedata/locales/en_AU
index 39aa7e2..db73571 100644
--- a/localedata/locales/en_AU
+++ b/localedata/locales/en_AU
@@ -114,7 +114,7 @@ t_fmt       "<U0025><U0054>"
 am_pm       "<U0041><U004D>";"<U0050><U004D>"
 t_fmt_ampm  "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
 <U0025><U0070>"
-date_fmt	"<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
+date_fmt	"<U0025><U0041><U0020><U0025><U002D><U0065><U0020><U0025><U0042><U0020>/
 <U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
 <U0025><U005A><U0020><U0025><U0059>"
 END LC_TIME

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix date_fmt in en_AU locale
  2012-04-29 14:48 [PATCH] Fix date_fmt in en_AU locale Aurelien Jarno
@ 2012-04-30  7:52 ` Petr Baudis
  2012-04-30  7:54   ` Petr Baudis
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Baudis @ 2012-04-30  7:52 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: libc-alpha, libc-locales

  Hi!

On Sun, Apr 29, 2012 at 04:48:15PM +0200, Aurelien Jarno wrote:
> The date_fmt definition in the en_AU locale displays the month before
> the day, which doesn't correspond to the common standards there [1].
> The patch below fixes that, which also make the definition consistent
> with d_t_fmt.
> 
> [1] https://en.wikipedia.org/wiki/Date_and_time_notation_in_Australia

  This patch does two different things (I'd have preferred if you
clarified that in the patch description...):

  (i) Switch order from %a %b %e to %a %e %b. Wikipedia says while the
latter is the "standard", the former is common too. I personally don't
think switching between two commonly used format just because one of
them is mentioned in a government style manual is not a persuasive
argument. I'm open to discussion though. What do non-GNU locale
environments use? Is there any survey of everyday use besides the
unsourced Wikipedia statement?  Is there a community of Australian
GNU users you could poll?

  (ii) Switch form from %a %e %b to %A %-e %B. This is not mentioned
in the patch description at all and is missing a rationale. Using long
form in locales where it can take many characters (e.g. en_*) is fairly
uncommon. The wikipedia example uses long form but is that really more
common? Also, it includes extra commas, should we include them too?

  This is not a clear-cut change so it will need more work/discussion
if we shall change anything. And for example http://www.smh.com.au/
uses old format and mix of short and long form for various fields. :-)

> 2012-04-29  Aurelien Jarno  <aurelien@aurel32.net>
> 
>         * locales/en_AU: Change date_fmt to match Australian standards.

  Also, I forgot to mention last time that usually, section is appended
to filename in the Changelog - * locales/en_AU (LC_TIME): ...

-- 
				Petr "Pasky" Baudis
	Smart data structures and dumb code works a lot better
	than the other way around.  -- Eric S. Raymond

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Fix date_fmt in en_AU locale
  2012-04-30  7:52 ` Petr Baudis
@ 2012-04-30  7:54   ` Petr Baudis
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Baudis @ 2012-04-30  7:54 UTC (permalink / raw)
  To: Aurelien Jarno; +Cc: libc-alpha, libc-locales

On Mon, Apr 30, 2012 at 09:52:19AM +0200, Petr Baudis wrote:
> I personally don't think switching between two commonly used format
> just because one of them is mentioned in a government style manual is
> not a persuasive argument.

  Sorry, I didn't mean to use a double negative. :-) I think it is not
good enough argument alone for a switch.

				Petr "Pasky" Baudis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-30  7:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-29 14:48 [PATCH] Fix date_fmt in en_AU locale Aurelien Jarno
2012-04-30  7:52 ` Petr Baudis
2012-04-30  7:54   ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).