* Locale control of ambiguous-width character properties
@ 2018-02-25 18:12 Thomas Wolff
0 siblings, 0 replies; only message in thread
From: Thomas Wolff @ 2018-02-25 18:12 UTC (permalink / raw)
To: cygwin, newlib
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.
For that matter, Iâm asking to revisit the proposal of another generic
modifier, @cjkwide, applicable to non-CJK locales. Iâm providing a patch
for that purpose, available for download here:
http://towo.net/cygwin/newlib/000-locale.zip
Thomas
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-25 18:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-25 18:12 Locale control of ambiguous-width character properties Thomas Wolff
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).