public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
From: "keld at keldix dot com" <sourceware-bugzilla@sourceware.org>
To: libc-locales@sourceware.org
Subject: [Bug localedata/22848] ca_ES: update date definitions from CLDR
Date: Sun, 18 Feb 2018 22:36:00 -0000	[thread overview]
Message-ID: <bug-22848-716-CgwwplbRnw@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-22848-716@http.sourceware.org/bugzilla/>

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

--- Comment #9 from keld at keldix dot com <keld at keldix dot com> ---
The abmon strings are made for posix utilities so they
can display aligned coloumns like in ls -l 
Abmon strings should not be used for real language displays.
The long forms are intended for natural language display.

It was never the meaning of POSIX i18n that there should not be non-English
support for listings like ls -l

I think the use of CLDR data here i erroneous.
Unicode data was never intended for POSIX utilities.

Best regards
Keld


On Sun, Feb 18, 2018 at 10:10:50PM +0000, egmont at gmail dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=22848
> 
> Egmont Koblinger <egmont at gmail dot com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |egmont at gmail dot com
> 
> --- Comment #8 from Egmont Koblinger <egmont at gmail dot com> ---
> (In reply to Robert Buj from comment #6)
> 
> > [robert@fedora temp]$ ls -ltr --time-style="+%e %_11B %H:%M"
>                                                    ^^^
> 
> printf-style width and precision always counts bytes rather than characters,
> let alone display width. So if you need aligned output in non-English context,
> you should refrain from using them.
> 
> Aligning long month names doesn't even work with English names:
> 
> $ LC_ALL=en_US.UTF-8 /tmp/coreutils-8.29/src/ls -ltr --time-style='+%B'
> -rw-r--r-- 1 egmont egmont 0 January file01
> -rw-r--r-- 1 egmont egmont 0 February file02
> -rw-r--r-- 1 egmont egmont 0 March file03
> [...]
> 
> Checking in another language (with varying length and various accents for
> short/long month names) the output is automatically properly aligned with short
> month names, but not with long ones:
> 
> $ LC_ALL=hu_HU.UTF-8 /tmp/coreutils-8.29/src/ls -ltr --time-style='+%b'
> -rw-r--r-- 1 egmont egmont 0 jan   file01
> -rw-r--r-- 1 egmont egmont 0 febr  file02
> -rw-r--r-- 1 egmont egmont 0 márc  file03
> -rw-r--r-- 1 egmont egmont 0 ápr   file04
> [...]
> -rw-r--r-- 1 egmont egmont 0 aug   file08
> -rw-r--r-- 1 egmont egmont 0 szept file09
> [...]
> 
> $ LC_ALL=hu_HU.UTF-8 /tmp/coreutils-8.29/src/ls -ltr --time-style='+%B'
> -rw-r--r-- 1 egmont egmont 0 január file01
> -rw-r--r-- 1 egmont egmont 0 február file02
> -rw-r--r-- 1 egmont egmont 0 március file03
> -rw-r--r-- 1 egmont egmont 0 április file04
> -rw-r--r-- 1 egmont egmont 0 május file05
> [...]
> 
> Since strftime() obviously cannot have any clue about the other dates you have
> called this method with, and are about to call this method with; the nice
> alignment of abbreviated month names must be done by ls. In coreutils/src/ls.c,
> you find the relevant code in line 1100-ish (v8.29), around abmon_init().
> 
> I think it should be brought up on the coreutils mailing list to do the same
> with the full month names too (and BTW for both the genitive and nominative
> variants).
> 
> The correctness of your proposed patch (which I cannot comment on) shouldn't
> depend on this, and your patch shouldn't be blocked by ls's limited aligning
> capabilities.
> 
> -- 
> You are receiving this mail because:
> You are on the CC list for the bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2018-02-18 22:36 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 11:50 [Bug localedata/22848] New: " rbuj at fedoraproject dot org
2018-02-15 11:52 ` [Bug localedata/22848] " rbuj at fedoraproject dot org
2018-02-15 18:04 ` piotrdrag at gmail dot com
2018-02-17 12:04 ` rbuj at fedoraproject dot org
2018-02-17 21:18 ` rbuj at fedoraproject dot org
2018-02-17 21:46 ` digitalfreak at lingonborough dot com
2018-02-18 13:57 ` rbuj at fedoraproject dot org
2018-02-18 16:54 ` digitalfreak at lingonborough dot com
2018-02-18 17:07 ` rbuj at fedoraproject dot org
2018-02-18 17:36 ` rbuj at fedoraproject dot org
2018-02-18 21:35 ` rbuj at fedoraproject dot org
2018-02-18 22:10 ` egmont at gmail dot com
2018-02-18 22:36   ` Keld Simonsen
2018-02-18 22:36 ` keld at keldix dot com [this message]
2018-02-18 22:55 ` egmont at gmail dot com
2018-02-19  2:05 ` rbuj at fedoraproject dot org
2018-02-19  2:22 ` rbuj at fedoraproject dot org
2018-02-19  2:34 ` rbuj at fedoraproject dot org
2018-02-19  7:53 ` rbuj at fedoraproject dot org
2018-02-19 10:37 ` rbuj at fedoraproject dot org
2018-02-19 11:52 ` rbuj at fedoraproject dot org
2018-02-20  1:54 ` digitalfreak at lingonborough dot com
2018-02-20  7:54 ` rbuj at fedoraproject dot org
2018-02-20  8:39 ` egmont at gmail dot com
2018-02-20  8:43 ` egmont at gmail dot com
2018-02-20  9:36 ` rbuj at fedoraproject dot org
2018-02-20  9:53 ` rbuj at fedoraproject dot org
2018-02-20 13:45 ` egmont at gmail dot com
2018-02-20 14:23 ` rbuj at fedoraproject dot org
2018-02-22  1:09 ` digitalfreak at lingonborough dot com
2018-03-03 19:58 ` digitalfreak at lingonborough dot com
2018-03-06  7:56 ` rbuj at fedoraproject dot org
2018-03-06 20:35 ` digitalfreak at lingonborough dot com
2018-03-06 22:01 ` rbuj at fedoraproject dot org
2018-03-07  0:07 ` digitalfreak at lingonborough dot com
2018-03-15  0:43 ` cvs-commit at gcc dot gnu.org
2018-03-15 19:39 ` carlos at redhat dot com
2018-03-15 19:46 ` carlos at redhat dot com
2018-03-15 20:25 ` carlos at redhat dot com
2018-03-15 20:26 ` carlos at redhat dot com
2018-03-16 22:08 ` cvs-commit at gcc dot gnu.org
2018-03-16 23:04 ` cvs-commit at gcc dot gnu.org
2018-03-31 12:24 ` jeremip11 at gmail dot com
2018-06-01 16:51 ` cvs-commit at gcc dot gnu.org
2018-08-01  5:59 ` cvs-commit at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-22848-716-CgwwplbRnw@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=libc-locales@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).