X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=ZKf n6SM4IiIkgxVNSr4uOpWqgeN0zfksfDUuASU6o5GF1HTBY2U3zRo8z9kHBhoZPfD PFIeSs7ZVMTrlWS+csJ8HEZ7A/IgCMAcylQzTbYpt4GI9fYEBfBhcKvIPL8P8TcQ iEragl+Dqe2Qq5CmKldjklwhVlEesRP22WvD/UT0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=kp78NXIu5 rKKEqawC0YgW4js3/8=; b=l77myIIkRMa+XFJptnLV6QVZ3UmGGc6StpKQxpxeN JGZMv92KO0Auh4TD1P9pxOO/WkYtYvmhmiPwV2z4Bg3WlMbuc3W54ACdzeOj7/ID KJIcqTXrWO55qTmp3BRICHB6WcvxXY3SG2hiizTNbdy6eLaq9EZjFAbSW69NAnEk GQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=baffled, addon, UD:towo.net, towo.net X-Spam-User: qpsmtpd, 2 recipients X-HELO: mout.kundenserver.de From: Thomas Wolff Subject: Locale control of ambiguous-width character properties To: cygwin AT cygwin DOT com, newlib AT sourceware DOT org Message-ID: Date: Sun, 25 Feb 2018 19:12:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-UI-Out-Filterresults: notjunk:1;V01:K0:di8PO0lnajw=:zZYbKSCrBwDwSUiXYM/Mh8 Ss+tcnMIRHvYweEVfPqq3UMOuN0wLneml0fu85WmTsiVLMuKfrNlRB9fm1U204cSZ79W0RORr uZNIF4l159LbrfUXMjExeUfvAP3ZyqJV9HiYiieOCoUQ/SuWxKntFKtbiUzfgplvbsW7baqc+ mO07wzEuV6VTbNW7Xoq8YofIkDg1I0vExnTmP9cEvDi71Ky2dvBNKMZgwV0NOKFQUxzazbxqQ 5gTT7lIWfWAs9MWuYwjFP2hyuHhq1mxJyAdpeHeYB4d+XSEHWK5fjBXEN5iP3tNyeKZ3YBcR9 1TbSgjNL+gPTr2+0WNFQvUUQNFEeyEyl90PqUKhh/GFkvi4pKgsTGYvzjliX5btehvTqB+GEp EOW0MQW+BCyjmAFWEwhHCdQL8frfAGBKcekTAv7X2jL82sqROcbAVYO8MPIfQLNca+xQS8RuH rauY/PR5twKISgB3onBTKzx3aIbax4x1leAm3MSzTN2mE/grxpzmxsah7qKVLpkB5/ogyRZGu gInmVArDRjHnIoA1DgAf4z61j+5c1AW2U9uQ5mjkojvB1wMYHFafgTJjdRtVxr/c5X+hT9Men sgvc2MCly5+L4wGmDiYfp0QS0QXo4dxPsBy47LUVomN7Yr3qW4t50DoE+Fs86juxVKvmNKKDd JZU88D+8sDENHwjdzRX0+alyo9juSsq9rcqV1sglWtot0sb0zp27c8zuXz+aczWIo8I2wZ1Kl lH/bZNtP2+fnA/jCYTT95F/8SSReVxR+ei6tjiEMZBTwj+Ea6eZjMWoB1vg= X-IsSubscribed: yes 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