svn commit: r292512 - in head: share/timedef tools/tools/locale/tools
Hajimu UMEMOTO
ume at FreeBSD.org
Sun Dec 20 14:59:31 UTC 2015
Author: ume
Date: Sun Dec 20 14:59:30 2015
New Revision: 292512
URL: https://svnweb.freebsd.org/changeset/base/292512
Log:
Restore a day of the week in date(1) output for Japanese locales.
It was lost by recent locale change.
Modified:
head/share/timedef/ja_JP.SJIS.src
head/share/timedef/ja_JP.UTF-8.src
head/share/timedef/ja_JP.eucJP.src
head/tools/tools/locale/tools/cldr2def.pl
Modified: head/share/timedef/ja_JP.SJIS.src
==============================================================================
--- head/share/timedef/ja_JP.SJIS.src Sun Dec 20 13:41:06 2015 (r292511)
+++ head/share/timedef/ja_JP.SJIS.src Sun Dec 20 14:59:30 2015 (r292512)
@@ -63,7 +63,7 @@
ßã
#
# date_fmt
-%YN%m%eú %H:%M:%S %Z
+%YN%m%eú %A %H:%M:%S %Z
#
# Long month names (without case ending)
1
Modified: head/share/timedef/ja_JP.UTF-8.src
==============================================================================
--- head/share/timedef/ja_JP.UTF-8.src Sun Dec 20 13:41:06 2015 (r292511)
+++ head/share/timedef/ja_JP.UTF-8.src Sun Dec 20 14:59:30 2015 (r292512)
@@ -56,14 +56,14 @@
%Y/%m/%d
#
# c_fmt
-%Yå¹´%mæ%eæ¥ %H:%M:%S
+%Yå¹´%mæ%eæ¥ %A %H:%M:%S
#
# AM/PM
åå
åå¾
#
# date_fmt
-%Yå¹´%mæ%eæ¥ %H:%M:%S %Z
+%Yå¹´%mæ%eæ¥ %A %H:%M:%S %Z
#
# Long month names (without case ending)
1æ
Modified: head/share/timedef/ja_JP.eucJP.src
==============================================================================
--- head/share/timedef/ja_JP.eucJP.src Sun Dec 20 13:41:06 2015 (r292511)
+++ head/share/timedef/ja_JP.eucJP.src Sun Dec 20 14:59:30 2015 (r292512)
@@ -56,14 +56,14 @@
%Y/%m/%d
#
# c_fmt
-%Yǯ%m·î%eÆü %H:%M:%S
+%Yǯ%m·î%eÆü %A %H:%M:%S
#
# AM/PM
¸áÁ°
¸á¸å
#
# date_fmt
-%Yǯ%m·î%eÆü %H:%M:%S %Z
+%Yǯ%m·î%eÆü %A %H:%M:%S %Z
#
# Long month names (without case ending)
1·î
Modified: head/tools/tools/locale/tools/cldr2def.pl
==============================================================================
--- head/tools/tools/locale/tools/cldr2def.pl Sun Dec 20 13:41:06 2015 (r292511)
+++ head/tools/tools/locale/tools/cldr2def.pl Sun Dec 20 14:59:30 2015 (r292512)
@@ -67,6 +67,7 @@ my %callback = (
mdorder => \&callback_mdorder,
altmon => \&callback_altmon,
cformat => \&callback_cformat,
+ dtformat => \&callback_dtformat,
cbabmon => \&callback_abmon,
data => undef,
);
@@ -184,7 +185,7 @@ if ($TYPE eq "timedef") {
"c_fmt" => "<cformat<d_t_fmt<s",
"am_pm" => "as",
"d_fmt" => "s",
- "d_t_fmt" => "s",
+ "d_t_fmt" => "<dtformat<d_t_fmt<s",
"altmon" => "<altmon<mon<as",
"md_order" => "<mdorder<d_fmt<s",
"t_fmt_ampm" => "s",
@@ -201,6 +202,16 @@ sub callback_cformat {
return $s;
};
+sub callback_dtformat {
+ my $s = shift;
+ my $nl = $callback{data}{l} . "_" . $callback{data}{c};
+
+ if ($nl eq 'ja_JP') {
+ $s =~ s/(> )(%H)/$1%A $2/;
+ }
+ return $s;
+};
+
sub callback_mdorder {
my $s = shift;
return undef if (!defined $s);
More information about the svn-src-head
mailing list