From owner-svn-src-head@freebsd.org Wed Jul 27 18:12:37 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85894BA6E60; Wed, 27 Jul 2016 18:12:37 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3E89E1283; Wed, 27 Jul 2016 18:12:37 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6RICac0037687; Wed, 27 Jul 2016 18:12:36 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6RICa1V037684; Wed, 27 Jul 2016 18:12:36 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201607271812.u6RICa1V037684@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 27 Jul 2016 18:12:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r303404 - in head: share/timedef tools/tools/locale/tools X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2016 18:12:37 -0000 Author: jkim Date: Wed Jul 27 18:12:36 2016 New Revision: 303404 URL: https://svnweb.freebsd.org/changeset/base/303404 Log: Add a hack to add weekday to date format for ko_KR locale. Modified: head/share/timedef/ko_KR.UTF-8.src head/share/timedef/ko_KR.eucKR.src head/tools/tools/locale/tools/cldr2def.pl Modified: head/share/timedef/ko_KR.UTF-8.src ============================================================================== --- head/share/timedef/ko_KR.UTF-8.src Wed Jul 27 17:55:40 2016 (r303403) +++ head/share/timedef/ko_KR.UTF-8.src Wed Jul 27 18:12:36 2016 (r303404) @@ -56,14 +56,14 @@ %y. %m. %e. # # c_fmt -%Y년 %m월 %e일 %p %I시 %M분 %S초 +%Y년 %m월 %e일 %A %p %I시 %M분 %S초 # # AM/PM 오전 오후 # # date_fmt -%Y년 %m월 %e일 %p %I시 %M분 %S초 %Z +%Y년 %m월 %e일 %A %p %I시 %M분 %S초 %Z # # Long month names (without case ending) 1월 Modified: head/share/timedef/ko_KR.eucKR.src ============================================================================== --- head/share/timedef/ko_KR.eucKR.src Wed Jul 27 17:55:40 2016 (r303403) +++ head/share/timedef/ko_KR.eucKR.src Wed Jul 27 18:12:36 2016 (r303404) @@ -56,14 +56,14 @@ %y. %m. %e. # # c_fmt -%Y %m %e %p %I %M %S +%Y %m %e %A %p %I %M %S # # AM/PM # # date_fmt -%Y %m %e %p %I %M %S %Z +%Y %m %e %A %p %I %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 Wed Jul 27 17:55:40 2016 (r303403) +++ head/tools/tools/locale/tools/cldr2def.pl Wed Jul 27 18:12:36 2016 (r303404) @@ -217,6 +217,9 @@ sub callback_cformat { my $s = shift; my $nl = $callback{data}{l} . "_" . $callback{data}{c}; + if ($nl eq 'ko_KR') { + $s =~ s/(> )(%p)/$1%A $2/; + } $s =~ s/\.,/\./; $s =~ s/ %Z//; $s =~ s/ %z//; @@ -240,7 +243,7 @@ sub callback_dtformat { if ($nl eq 'ja_JP') { $s =~ s/(> )(%H)/$1%A $2/; - } elsif ($nl eq 'zh_TW') { + } elsif ($nl eq 'ko_KR' || $nl eq 'zh_TW') { $s =~ s/(> )(%p)/$1%A $2/; } $s =~ s/\.,/\./;