From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76462 invoked by alias); 18 Feb 2020 10:38:52 -0000 Mailing-List: contact cygwin-cvs-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-cvs-owner@cygwin.com Received: (qmail 76444 invoked by uid 9078); 18 Feb 2020 10:38:51 -0000 Date: Tue, 18 Feb 2020 10:38:00 -0000 Message-ID: <20200218103851.76443.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: describe new locale modifier @cjksingle for user guide X-Act-Checkin: newlib-cygwin X-Git-Author: Thomas Wolff X-Git-Refname: refs/heads/master X-Git-Oldrev: c8204b106988fd089a6d568f540100a3b88b628c X-Git-Newrev: b7361d31fb8659aa6cea85d7eef22471727be26b X-SW-Source: 2020-q1/txt/msg00069.txt https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b7361d31fb8659aa6cea85d7eef22471727be26b commit b7361d31fb8659aa6cea85d7eef22471727be26b Author: Thomas Wolff Date: Mon Feb 17 00:00:00 2020 +0100 Cygwin: describe new locale modifier @cjksingle for user guide Diff: --- winsup/doc/setup-locale.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/winsup/doc/setup-locale.xml b/winsup/doc/setup-locale.xml index 4872ae2..4b9141e 100644 --- a/winsup/doc/setup-locale.xml +++ b/winsup/doc/setup-locale.xml @@ -179,6 +179,17 @@ response with this option; it forces wcwidth/wcswidth to return 2 for the ambiguous width characters. + +As an alternative preference, CJK single-width may be enforced. +This feature is a +proposal +in the Terminals Working Group Specifications. +The mintty terminal implements it as an option with proper glyph scaling. +The locale modifier "@cjksingle" supports consistent locale response +with this option; it forces wcwidth/wcswidth to account at most 1 for +all characters. + +