This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] locale modifier @cjkwide


Am 27.02.2018 um 15:58 schrieb Corinna Vinschen:
Hi Thomas,

On Feb 26 22:42, Thomas Wolff wrote:
I wrote yesterday:
It had been discussed how to reflect ambiguous character widths in
cygwin locales, with the result of an implicit wide property assumed for
the CJK locales, and an overriding @cjknarrow modifier:
https://sourceware.org/ml/cygwin/2009-06/msg00240.html
https://sourceware.org/ml/cygwin/2009-06/msg00521.html
https://sourceware.org/ml/cygwin/2009-06/msg00616.html

Now I’m getting occasional complaints about mintty support for wide
display of certain symbol characters, particularly as used for some
fancy “Powerline” add-on, and it seems that other terminals apply
“ambiguous wide mode” (e.g. xterm -cjk_width) in order to enable
Powerline.
While mintty has an option Charwidth=ambig-wide meanwhile, using this
option clearly has the drawback that it makes character width handling
inconsistent with the locale model as used by wcwidth.
Actually for mintty, the desired behaviour can be achieved in a
locale-consistent way by selecting one of the CJK locales for LC_CTYPE;
that’s not what most people would expect, however, and if they do it the
easy way, using LANG or LC_ALL, they are baffled by also getting
their message language obscured.
So I would prefer the option to use ambiguous wide mode in combination
with non-CJK locales in a locale-compatible way.
So I suggest to revisit the proposal of another generic modifier, also for
symmetry, which is @cjkwide applicable to non-CJK locales.
Patch attached.
Thomas
Just one point:
...
Subject: [PATCH] locale modifier @cjkwide
It would be most helpful to get a v2 patch with a commit message
describing why adding cjkwide makes sense, for later reference.
The subject "locale modifier @cjkwide" is rather terse.
New patch attached. I'll also provide a patch for the Cygwin user guide, to cygwin-patches.
Thomas

Attachment: 0001-Locale-modifier-cjkwide-makes-Unicode-ambiguous-widt.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]