delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/01/28/15:28:17

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:message-id:date:from:subject:to:references; q=
dns; s=default; b=nzAQyVpmclRreTxjFmG/ci67Qnkfw6qFtHEuBstd5yKO6s
BdcMfxMPCV7oFH+SD+iJP6KUguNcWwJYKQNRwZ5oTkn1xjuFMfOjuhOCy1gy5wFT
44dpbPOa/7CVinOXxGOCg/QacgtDxpJzAu92VDnNAJVam2KAA0Fx0QLMvvjaA=
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:message-id:date:from:subject:to:references; s=
default; bh=Unyynf3+j45xvG56OKt5jUonXQQ=; b=xsjPxAW5IrxzsS+8aGii
C5maRu8bTaiVV7jzpLEoIAcY2GLs+0j3EFAvJkIow6phJjZ5ACDBksIJWhi0sW/9
aANsH8W0LHZBB+WXzYFTUdtcpivyqLAz9ZYQqXusjxN2YOINJQoVkYUTzzFveBDs
sBTpwqFQN0v0KrVgDgoPtR4=
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=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*M:google
X-HELO: mail-oi0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:subject:to:references :user-agent; bh=BiU9ekeoXPlINmsSTOvImdHaDAf3me4jhu64hwyPqnM=; b=QXd5B8oJoeGGkQAgykXfHoBlaED6FeniwKO9hqgQVEBG2Dr+kBZAdxBt8RwirKvO2B Ctt1sbwQJHFjYZsu9+sG9HV24embtWW4zFgZQKxRPAZZvwbYU61a3hcH+I4m9zg9/h8i T0KeFmmfgQBghsZGbCQ61Z5IZoxrWSpIha7x+RPC6MsvRLB67x6w6iUri+s3Imw24ygp PxVBTSuzKbn50zyD36rlBK90RWwwQXPtXNYQInIPCHXeb5dqyYWC2o7hO22J4WcrcgC6 iP4WsDgPQuW3ZnxzJc3+b1/IrCnedPEVB3u00FNUp52DHPK0oglsjh70h5DjvP0wZxq2 c5mg==
X-Gm-Message-State: AIkVDXJoIAbOBaIBz8O8I9JWjFq6EtWFtDSABHIX08SThoHbAlvf4sD6yJCxBieLB6UjuA==
X-Received: by 10.202.181.11 with SMTP id e11mr8618580oif.57.1485635269369; Sat, 28 Jan 2017 12:27:49 -0800 (PST)
Message-ID: <588cfec4.ae1d9d0a.76683.7c48@mx.google.com>
Date: Sat, 28 Jan 2017 12:27:48 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
X-Google-Original-From: Steven Penny
Subject: Re: [ANNOUNCEMENT] Updated: bash-4.4.12-3
To: cygwin AT cygwin DOT com
References: <announce DOT 88ae2fe1-9528-9665-709e-93aad8d7e32c AT redhat DOT com>
User-Agent: mailing-list.awk 1.0.0

On Fri, 27 Jan 2017 13:23:53, "Eric Blake (cygwin)" wrote:
> A new release of bash, 4.4.12-3, has been uploaded and will soon reach a
> mirror near you.

Bash printf cannot handle any Unicode blocks starting with "Private Use Area"
(U+E000 - U+F8FF). Note I will be skipping the surrogate blocks[1] (U+D800 -
U+DFFF) for this post, as /bin/printf does not support them either[2]:

    $ bash -c 'printf \\uD7FF' | od -tcx1
    0000000 355 237 277
             ed  9f  bf

    $ bash -c 'printf \\uE000' | od -tcx1
    0000000 355 237 270 355 260 200
             ed  9f  b8  ed  b0  80

    $ /bin/printf '\uD7FF' | od -tcx1
    0000000 355 237 277
             ed  9f  bf

    $ /bin/printf '\uE000' | od -tcx1
    0000000 356 200 200
             ee  80  80

Tested with these environments:

    cygwin-20170119 bash-4.4.12
    cygwin-20170119 bash-4.4.11    
    cygwin-20170119 bash-4.4.5
    cygwin-20170119 bash-4.3.48
    cygwin-2.6.1 bash-4.4.12
    cygwin-2.6.1 bash-4.4.11
    cygwin-2.6.1 bash-4.4.5
    cygwin-2.6.1 bash-4.3.48
    cygwin-2.6.0 bash-4.4.12
    cygwin-2.6.0 bash-4.4.11
    cygwin-2.6.0 bash-4.4.5
    cygwin-2.6.0 bash-4.3.48

This appears to be Cygwin specific: I tested also on Debian 8.7.1 without issue.

[1] http://wikipedia.org/wiki/Universal_Character_Set_characters#Surrogates
[2] http://lists.gnu.org/archive/html/bug-coreutils/2008-05/msg00068


--
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

- Raw text -


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