public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* hu_HU locale: Avoid double space (bug 22657).
@ 2018-01-11  0:59 Rafal Luzynski
  2018-01-12  1:02 ` hu_HU locale: Avoid double space (bug 22657). [committed] Rafal Luzynski
  0 siblings, 1 reply; 2+ messages in thread
From: Rafal Luzynski @ 2018-01-11  0:59 UTC (permalink / raw)
  To: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

This is a slightly reworked patch by Egmont Koblinger.  It is trivial,
correct, fixes Hungarian locale data only, and I find it desirable.
AFAIK updates to the locale data do not break the freeze period.
OK to push to master now?  If there is no objection I will push in
less than 24 hours.

Regards,

Rafal

Link: https://sourceware.org/bugzilla/show_bug.cgi?id=22657

[-- Attachment #2: 0001-hu_HU-locale-Avoid-double-space-bug-22657.patch --]
[-- Type: text/x-patch, Size: 1779 bytes --]

From a001604dd17feb8e1ab536e67b222991ee255bce Mon Sep 17 00:00:00 2001
From: Egmont Koblinger <egmont@gmail.com>
Date: Mon, 1 Jan 2018 20:40:11 +0000
Subject: [PATCH] hu_HU locale: Avoid double space (bug 22657).
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The current date format prefixes one-digit days with a space, resulting
in ugly two spaces:

$ LC_ALL=hu_HU.UTF-8 date
2018. jan.  1., hétfő, 21:25:35 CET
          ^^

The official orthography rules doesn't contain an explicit rule about
this (which already gives no sane reason for double space), and an
implicit example of "1848. március 9." under bullet point 296 at
http://helyesiras.mta.hu/helyesiras/default/akh12 contains a single
space only. It's sure not convincing on an HTML page, but I confirm
that the official book edition (e.g.
https://www.libri.hu/en/konyv/a-magyar-helyesiras-szabalyai-32.html)
also contains a single space there.

	[BZ #22657]
	* localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
	before the day number which may produce a double space.
	(date_fmt): Likewise.
---
 localedata/locales/hu_HU | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/localedata/locales/hu_HU b/localedata/locales/hu_HU
index 01e45b9..0aa2104 100644
--- a/localedata/locales/hu_HU
+++ b/localedata/locales/hu_HU
@@ -544,12 +544,12 @@ mon     "janu<U00E1>r";/
         "okt<U00F3>ber";/
         "november";/
         "december"
-d_t_fmt "%Y. %b. %e., %A, %H:%M:%S %Z"
+d_t_fmt "%Y. %b. %-e., %A, %H:%M:%S %Z"
 d_fmt   "%Y-%m-%d"
 t_fmt   "%H:%M:%S"
 am_pm   "";""
 t_fmt_ampm "%H:%M:%S"
-date_fmt "%Y. %b. %e., %A, %H:%M:%S %Z"
+date_fmt "%Y. %b. %-e., %A, %H:%M:%S %Z"
 week     7;19971130;4
 first_weekday	2
 END LC_TIME
-- 
2.7.5


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

* Re: hu_HU locale: Avoid double space (bug 22657). [committed]
  2018-01-11  0:59 hu_HU locale: Avoid double space (bug 22657) Rafal Luzynski
@ 2018-01-12  1:02 ` Rafal Luzynski
  0 siblings, 0 replies; 2+ messages in thread
From: Rafal Luzynski @ 2018-01-12  1:02 UTC (permalink / raw)
  To: libc-alpha

11.01.2018 01:59 Rafal Luzynski <digitalfreak@lingonborough.com> wrote:
>
>
> This is a slightly reworked patch by Egmont Koblinger. It is trivial,
> correct, fixes Hungarian locale data only, and I find it desirable.
> AFAIK updates to the locale data do not break the freeze period.
> OK to push to master now? If there is no objection I will push in
> less than 24 hours.
>
> Regards,
>
> Rafal
>
> Link: https://sourceware.org/bugzilla/show_bug.cgi?id=22657

Committed now.

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

end of thread, other threads:[~2018-01-12  1:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-11  0:59 hu_HU locale: Avoid double space (bug 22657) Rafal Luzynski
2018-01-12  1:02 ` hu_HU locale: Avoid double space (bug 22657). [committed] Rafal Luzynski

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).