Bug 146908 - Afrikaans LC_TIME is incorrect (symlink to en_US)
Summary: Afrikaans LC_TIME is incorrect (symlink to en_US)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 8.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 07:30 UTC by danny
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:


Attachments
file.txt (382 bytes, text/plain)
2010-05-24 07:30 UTC, danny
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description danny 2010-05-24 07:30:02 UTC
LC_TIME files /usr/share/locale/af_ZA.* are incorrectly symlinked to en_US.ISO8859-1/LC_TIME

Fix: Substitute attached file as af_ZA.ISO8859-1/LC_TIME and symlink with af_ZA.IS8859-15/LC_TIME and af_ZA.UTF-8/LC_TIME

Patch attached with submission follows:
Comment 1 jhay 2010-05-24 09:22:24 UTC
Should the date not be: %Y-%m-%d?
South Africa has adopted ISO 8601 years ago, and while some people still
use various styles, this is the official one.

As a side issue, is the locale file format documented somewhere? I could
not find it quickly?

John
-- 
John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org
Comment 2 danny 2010-05-25 00:10:02 UTC
I've simply translated the glibc af_ZA LC_TIME.  I'm not actually South
African myself.  I was just puzzled at the symlink to en_US which 
obviously does not provide Afrikaans day/month names, and provides a 
date format which is MM/DD which is not used at all in ZA.

See
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/localedata/locales/af_ZA?rev=1.14&content-type=text/x-cvsweb-markup&cvsroot=glibc

http://en.wikipedia.org/wiki/Date_and_time_notation_by_country does
report ZA as officially using ISO 8601.

Since you *are* from South Africa, I defer to your local knowledge.
You might like to confer with dwayne@translate.org.za who appears to 
maintain the glibc af_ZA locale (at least he did in 2005)

If ZA officially uses ISO 8601, then perhaps en_ZA/LC_TIME should also 
be created to reflect that.  I notice that en_ZA is not present in 
FreeBSD, and none of the other en_*/LC_TIME files use %Y-%m-%d as x_fmt

> As a side issue, is the locale file format documented somewhere? I could
> not find it quickly.

LC_TIME format is defined in /usr/src/lib/libc/stdtime/timelocal.h as
struct lc_time_T {
       const char      *mon[12];
       const char      *month[12];
       const char      *wday[7];
       const char      *weekday[7];
       const char      *X_fmt;
       const char      *x_fmt;
       const char      *c_fmt;
       const char      *am;
       const char      *pm;
       const char      *date_fmt;
       const char      *alt_month[12];
       const char      *md_order;
       const char      *ampm_fmt;
};

Thanks very much,

Danny
Comment 3 Edwin Groothuis freebsd_committer 2010-10-18 11:49:05 UTC
Responsible Changed
From-To: freebsd-bugs->edwin

I'll take care of it.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:50 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped