delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/14/03:46:07

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=ow5FeShnlRhtgzfAdC4gi7OhOsOFIXbU32xMb3DxMFc+j2t+s0KQT
JZtssk6O0iQEzoxeBjHDap7eMMt3gwG6PWszXGtPn8cEMXMtoli7sF0+GZ5CDn80
H0iC+rwGWyAjlQVt6zYNoKYBjq245q1cktl4KT6SZc39bpUfWTK5kc=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=CzqtuI4427A/NZKusgw3MCCv1NU=; b=IDZ0V/eJfEZ759Nih3dQVHxpYBUS
0xeQgVWBTjkyZWZd7LIlZ5/pu6mTvm+FELrO+YD9hyVy6Tp+cuinjLCnkBtJMKrz
6T4wELJwqK8xwChUxEWUd2DcYSWyQ8BOtqXHnt6t8X1PZc2GlGLwK3sTUg6vnvkV
sd5H7DpLOn90l+Q=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:09c7b42, H*f:sk:09c7b42, H*MI:sk:09c7b42
X-HELO: drew.franken.de
Date: Tue, 14 Feb 2017 09:45:37 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3
Message-ID: <20170214084537.GD25846@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <d58b09904f6fc607e5c044e67a02f393 AT smtp-cloud3 DOT xs4all DOT net> <58893f48 DOT 0850ca0a DOT 6c5d DOT 5fde AT mx DOT google DOT com> <81b5af354b7a3925ff0a68dcc063265f AT smtp-cloud6 DOT xs4all DOT net> <20170131100402 DOT GB29504 AT calimero DOT vinschen DOT de> <20170131131616 DOT GC29504 AT calimero DOT vinschen DOT de> <40c92f1e987a9162742766816abb4a03 AT smtp-cloud2 DOT xs4all DOT net> <20170131153245 DOT GA8905 AT calimero DOT vinschen DOT de> <09c7b42a-7b8d-52b7-ce18-4e681eb51f05 AT towo DOT net>
MIME-Version: 1.0
In-Reply-To: <09c7b42a-7b8d-52b7-ce18-4e681eb51f05@towo.net>
User-Agent: Mutt/1.7.1 (2016-10-04)

--R3G7APHDIzY6R/pk
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 13 23:03, Thomas Wolff wrote:
> Am 31.01.2017 um 16:32 schrieb Corinna Vinschen:
> > On Jan 31 16:01, Houder wrote:
> > > On Tue, 31 Jan 2017 14:16:16, Corinna Vinschen wrote:
> > > [snip]
> > > > Ok, here's what happens on Linux:  The termios code support a flag
> > > > IUTF8.  This flag determines if the termios code checks for UTF8
> > > > characters in the input when performing an ERASE.  It checks if the
> > > > IUTF8 flag is set and if so, it checks in a loop if the just erased=
 byte
> > > > is a UTF-8 continuation character.  If so, it erases another byte.
> > > Agreed. One byte or more, depending on the "character" ... (which is
> > > not a problem in case of UTF-8 encoding -- continuation bit).
> > >=20
> > > Of course, the terminal driver must receive the characters encoded in=
 UTF-8.
> > >=20
> > > ...
> > ... It's the termios implementation
> > inside Cygwin.  I created a patch introducing the IUTF8 flag as on Linux
> > as well as a code snippet trying to remove entire utf-8 characters from
> > the input if the IUTF8 flag is set.  And it's set now by default since
> > we default to UTF-8 anyway.
> >=20
> > Thomas, you may want to check for the IUTF8 flag in upcoming mintty
> > versions and unset it if character set configured in the mintty options
> > dialog is !=3D UTF-8.
> So the flag is always set initially? Also on Linux? Does it (on Linux) al=
so
> have an effect for non-UTF-8 multibyte encodings?

Yes, yes, and yes.

> And cannot the Cygwin DLL set the flag to match the locale setting when it
> was invoked?
>=20
> I can (and will if appropriate) handle the flag in mintty as needed, but
> what if someone calls LC_ALL=3D.other_encoding dash later within the term=
inal
> session? I guess the more consistent solution would be to handle this in =
the

No.  We're talking about a function in the master side of the tty, while
the applications started in the terminal are on the slave side.

iutf8 is set in Linux by default and by most terminal applications ionly
reset if the LC_CTYPE setting in the environment of the terminal
application is not set to the utf8 codeset.  This is determined at
terminal startup, not by the inferior processes runnin in the terminal.
The applications still can set iutf8 via termios control (or stty(1)).

For mintty I just thought it might be helpful to honor the character set
setting in its options and to default to iutf8 if it's not set.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--R3G7APHDIzY6R/pk
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYosOxAAoJEPU2Bp2uRE+gWrkP/jeI3oVVq2Az7vb7Db6NG4lp
zwjH6AEIMWkGwDaDzjAP9kyZB56NpFd9WT8b3umkdDeh3rPCGgOulwhC9hhmmu9i
dd8jI3Mt3dFymLR4WjKtLQPMVcWwtjTIZZw8/jTJ1Le+YCyqRu7VHwarSwZn3y0L
HtvNpUO2dDHFPd7RY33HDPPdQgC+i8lXGZ1VcoMpsQI67np6p8xz5tYwm9TU3GVd
EkC9xf/+tNw4mt7bQRIA/tfg0E8pn3c/jlMXzUfiYpuxdVz0fjve69Lq6DQ4qYLg
zlAtxUAF2ZHrgM8jLUyrxVKvdgB83NILBE4A3TG/wXQbKwi8gzzZMviPUJV7CBGm
LXI6Gv0/eTPQznfGfysTKCQMc+cx1Sw8YnRpWcuo4b02FWiM67asgMcqF6tkYAV2
/6dIsVoT3w0kK97BqizhI9Sy3UvB83mvfVrz9DBpTVm5wDdwXX2WHkejxTFYnQKe
G1zkSK3AArygTjfOoY/+iUIrcJ3jt1SFkBJ0dErj7lYUxI9Px8HpTV7mHo83ejNo
uVh1OPW+Xz17riOF6TEuffFSDowJO3QA4ek1WgiHaizEpA5WPJwJrY4RSNyIbYk4
bQx1LszdLmgCCwQ5wSfCfZGAwrY6Yqt8Pq8HncdtkquwbQiRxNjzb7xjmfX2MWPJ
KDZrPiHEHanqOcsxHZqs
=rJMI
-----END PGP SIGNATURE-----

--R3G7APHDIzY6R/pk--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019