[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf, binary data, leading single quote and non ASCII codesets
|
From: |
Oğuz |
|
Subject: |
Re: printf, binary data, leading single quote and non ASCII codesets |
|
Date: |
Mon, 24 Jun 2024 15:32:00 +0300 |
On Mon, Jun 24, 2024 at 2:37 PM Gioele Barabucci <gioele@svario.it> wrote:
> $ printf -v b "\xc3\xbf\xbe"
>
> $ printf "$b" | { while LC_ALL=C read -N1 c; do \
> LC_ALL=C.UTF-8 printf "%d %q\n" "'$c" "$c"; done; }
> 195 $'\303'
> 255 $'\277'
> 190 $'\276'
Can't reproduce this on Ubuntu 22.04 with Bash 5.3-alpha. It says 191
here, not 255.
- printf, binary data, leading single quote and non ASCII codesets, Gioele Barabucci, 2024/06/24
- Re: printf, binary data, leading single quote and non ASCII codesets,
Oğuz <=
- Re: printf, binary data, leading single quote and non ASCII codesets, alex xmb sw ratchev, 2024/06/24
- Re: printf, binary data, leading single quote and non ASCII codesets, Chet Ramey, 2024/06/24