Incorrect date format in en_CA.UTF-8 locale

Bug #517397 reported by Paul Natsuo Kishimoto
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
langpack-locales (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Lucid by Paul Natsuo Kishimoto

Bug Description

Bug #214730 resulted in an *incorrect* change of d_fmt in the Canadian English/UTF-8 locale.

The date format was "%d/%m/%y" (04/02/10), then it was changed to "%y-%m-%d" (10-02-04). Even though the bug thread cited several references to Canadian standard CSA Z234.5:1989, which is identical to ISO 8601, the second format is ALSO incorrect.

From http://en.wikipedia.org/wiki/ISO_8601#Years:

"ISO 8601 prescribes, as a minimum, a four-digit year [YYYY] to avoid the year 2000 problem."

From the FAQ page at the Government of Canada website (http://www.nrc-cnrc.gc.ca/eng/ibp/inms/about/faq-time.html#Q8) that was linked from the other issue:

"The recommended full format is of the form 2001-12-31 23:59:28.73 UTC."

The correct format is "%Y-%m-%d" (2010-02-04).

$ lsb_release -rd && apt-cache policy locales
Description: Ubuntu 9.10
Release: 9.10
locales:
  Installed: 2.9+git20090617-3
  Candidate: 2.9+git20090617-3
  Version table:
 *** 2.9+git20090617-3 0
        500 http://ubuntu.mirror.rafal.ca karmic/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

In the file debian/patches/ubuntu-en_CA-dateformat.patch, the lines:

-d_fmt "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
+d_fmt "<U0025><U0079><U002D><U0025><U006D><U002D><U0025><U0064>"

...should instead be:

-d_fmt "<U0025><U0064><U002F><U0025><U006D><U002F><U0025><U0079>"
+d_fmt "<U0025><U0059><U002D><U0025><U006D><U002D><U0025><U0064>"

Changed in langpack-locales (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

Still present in:

$ lsb_release -rd && apt-cache policy locales
Description: Ubuntu 10.04 LTS
Release: 10.04
locales:
  Installed: 2.11+git20100304-3
  Candidate: 2.11+git20100304-3
  Version table:
 *** 2.11+git20100304-3 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Alexandre Demers (oxalin) wrote :

Since still in 11.04 Natty, I reported the bug to glibc and submitted a patch.
http://sourceware.org/bugzilla/show_bug.cgi?id=12731

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :
Changed in langpack-locales (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.