delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/24/05:30:56

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AOAUtbr1186468
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4AOAUtbr1186468
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=mJw1bsWi
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3154E385843D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1732444250;
bh=Cwm4ukXua6Qs9+pqwZYlOxZlv4Mu+nlwKenPUoZpx30=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=mJw1bsWiBsNSZEP6riwk66sWxCgLmjkUlLw6GiHB9eMAWiYTtEwH7wXS71pOLKcty
lQBLlzZhA5Dbr4XHMWNUTqanwD0SBehksRVA92oe/xrUZSF4pss3XlDc5alpRLBwvt
StFviyNLI/U87qjWY4PoPHBnOgJb+JBY35p1PXh8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D07483858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D07483858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732444224; cv=none;
b=fd8ra1N7FKVWdDh9wn8Kt0o1uBPvGse3KKwYbX3MAgA+Ahq/mYP3yqVH99UeMZID32OzINtdHboOwQ0JAzUQ+vQcr9BWMbaG8Qf0od5gvDgm3HVTDHZ2H3yQ3dN+zGorX6n3EzQ+PsAJHGGhdp/7yweHL7onFz6xQJjhOtQqvaU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1732444224; c=relaxed/simple;
bh=5VQ2yAhBr+4KjkxJCeJ++XLR86hG2+ibjm7C8oeAy0k=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=iNi9Czm9Clt1P13O+27JACIM0VxteLqTQzpBfg6SaNiWsW3KMuYEQC7TnbCktXqxKFg9XfGQJtYUWMmIS5cMqSs7dIIS/6LJe1fDaHhfkpcC4MM3+8CM4wCfAMmFShiBMqMtRsdYmoOnLAojtBX2vvF464cWK2l6l7CDmyQaU7s=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D07483858D29
X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6
Message-ID: <54ea0698-23d3-4bc7-8197-21624bb56c4e@towo.net>
Date: Sun, 24 Nov 2024 11:30:18 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: /bin/ls -l cannot handle printable Unicode characters outside the
BMP ...
To: cygwin AT cygwin DOT com
References: <CALXu0UcnZnQBbJQcSsbianeKiyB2vkOmvE1weGN_-EQSU=RNrQ AT mail DOT gmail DOT com>
<CALXu0UfYmRP5yMG4J6znd4svqq1kbgEkpvHj-CWjB6APE8C3uw AT mail DOT gmail DOT com>
<7eaa3a6a-7997-edef-e30b-1d50fdc39330 AT t-online DOT de>
Autocrypt: addr=towo AT towo DOT net; keydata=
xsDNBGNaf3QBDACVevqudcTSevLThXKQPU1QpaDxtGuYjtwmr7i9wXxVGih4Y4oxOJN4PYlu
KBX9IVAI4651dA+xYtXuyIkWOPZWyyzkGKavQOn3Q7dk09oj7bh2IwOndpxXXde337D408EQ
bQEGbMHr9lOWhSAideowzgCeFIvGTf2AovbPh97HpexJn1/HCRiRAhTNlrkS1DByUgCAeEMK
fEr6aGM/Ou29MT+eTnQwOIZTnl9Z9LxM2FtqqMH3MycC7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zrdSarQoAN+anA5N2sifwagNel
OQ4SMXPByLJVg9eU081BIqI2Sgndy1sOJPYK1LLjxbXcsaaetjsgtjOkXglYP5xO8o
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Thomas Wolff via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Thomas Wolff <towo AT towo DOT net>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4AOAUtbr1186468

Am 23.11.2024 um 15:01 schrieb Christian Franke via Cygwin:
> Cedric Blancher via Cygwin wrote:
>> On Sat, 23 Nov 2024 at 11:44, Cedric Blancher
>> <cedric DOT blancher AT gmail DOT com> wrote:
>>> Good morning!
>>>
>>> /bin/ls -l cannot handle printable Unicode characters outside the BMP
>>>
>>> Example using '𝒯'
>>> bash -c 'printf "\U0001D4AF\n"' # MATHEMATICAL SCRIPT CAPITAL T
>>> (yes, our mathematicians want to use THAT as file name)
>>>
>>> On Linux:
>>> LC_ALL=en_US.UTF-8 bash -c 't="$(printf "\U0001D4AF\n")" ; touch
>>> "$t" "$t$t"'
>>> ls -la
>>> total 8
>>> -rw-r--r--Β  1 ced stadenΒ  0 Nov 23 11:29 ΓΆΓΆΓΆΓΆΓΆΓΆΓΆ
>>> -rw-r--r--Β  2 ced stadenΒ  4 Nov 23 11:31 𝒯
>>> -rw-r--r--Β  2 ced stadenΒ  4 Nov 23 11:31𝒯𝒯
>>>
>>> On Cygwin:
>>> LC_ALL=en_US.UTF-8 bash -c 't="$(printf "\U0001D4AF\n")" ; touch
>>> "$t" "$t$t"'
>>> $ ls -la
>>> -rw-r--r-- 1 ced stadenΒ  0 Nov 23 11:29Β  ΓΆΓΆΓΆΓΆΓΆΓΆΓΆ
>>> -rw-r--r-- 2 ced stadenΒ  4 Nov 23 11:31 ''$'\360\235\222\257'
>>> -rw-r--r-- 2 ced stadenΒ  4 Nov 23 11:31
>>> ''$'\360\235\222\257\360\235\222\257'
>>>
>>> Looks like the Cygwin locale has a problem with non-BMP chars.
>> find(1) is even worse:
>> $ find .
>> .
>> ./ΓΆΓΆΓΆΓΆΓΆΓΆΓΆ
>> ./????
>> ./x??x
Workaround: ls ... | cat ; find ... | cat

>>
>> The Microsoft Explorer GUI shows the file names correctly, so IMO this
>> is not a Windows or Win32 API problem.
>
> Slightly different filename problem which may be related or not:
> https://sourceware.org/pipermail/cygwin/2024-September/256451.html
>


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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