[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Corrupted multibyte characters in command substitutions
From: |
Chet Ramey |
Subject: |
Re: Corrupted multibyte characters in command substitutions |
Date: |
Sat, 8 Jan 2022 14:32:01 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
On 1/7/22 7:21 PM, Ángel wrote:
When you mentioned the environment in the previous mail I thought in
the environment block (which you reset with env -i). As for the
environment in general, yes, apparently there are more things that
cause it to be even more random.
The buffer is an auto variable (function local) created on the stack. It
seems to me that the value of the variable adjacent to it on the stack
(`adjacent' is compiler and system dependent) can determine whether or not
that next byte following the buffer affects the mbrtowc() result.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: Corrupted multibyte characters in command substitutions, (continued)
- Re: Corrupted multibyte characters in command substitutions, Chet Ramey, 2022/01/02
- Re: Corrupted multibyte characters in command substitutions, Frank Heckenbach, 2022/01/02
- Re: Corrupted multibyte characters in command substitutions, Chet Ramey, 2022/01/02
- Re: Corrupted multibyte characters in command substitutions, Frank Heckenbach, 2022/01/02
- Re: Corrupted multibyte characters in command substitutions, Ángel, 2022/01/03
- Re: Corrupted multibyte characters in command substitutions, Chet Ramey, 2022/01/06
- Re: Corrupted multibyte characters in command substitutions, Ángel, 2022/01/07
- Re: Corrupted multibyte characters in command substitutions, Chet Ramey, 2022/01/08
- Re: Corrupted multibyte characters in command substitutions, Frank Heckenbach, 2022/01/07
- Re: Corrupted multibyte characters in command substitutions, Ángel, 2022/01/07
- Re: Corrupted multibyte characters in command substitutions,
Chet Ramey <=