[Nelson H. F. Beebe ran many tests and reported
the results privately ]
Thank you for the testing and reporting the results.
I was about to make the release when I saw your email.
Here's the first failure I have investigated:
+ tr2='\200'
+ echo X
+ tr X '\200'
+ LC_ALL=C
+ env -- tr X '\200'
++
Jim Meyering wrote:
Conclusion: we'll have to make btowc work properly in the C locale, too.
Perhaps something like the attached (untested) patch? The basic idea is to have
btowc and mbtowc use a fixed mbrtowc if the latter has the C-locale problem in
question. While we're at it, btowc should
Hi All.
Note that MirBSD's libc is badly broken. Even when LC_ALL=C MB_CUR_MAX
can be > 1. And perhaps other severe departures from reality.
There is code in gawk to deal with it - you can look at the gawk 4.1.3
tarball and various bits in the C code for LIBC_IS_BORKED (or some such).
For the ne