Ah, thanks. Your fix seems much smarter. I'm still not very convinced that we should have "2nd edition" awk. But it would be a good idea to have this fix in -current for now. We should upstream this also, but they seem to believe everyone uses UTF-8 or ASCII ;) Thanks, rin On 2024/08/20 20:05, gnats-admin%netbsd.org@localhost wrote:
The following reply was made to PR bin/58619; it has been noted by GNATS. From: RVP <rvp%SDF.ORG@localhost> To: gnats-bugs%netbsd.org@localhost Cc: Subject: Re: bin/58619: nawk 2024-08-17 broken and incompatible for non-UTF-8 and non-C locales Date: Tue, 20 Aug 2024 11:00:01 +0000 (UTC) On Tue, 20 Aug 2024, gnats-admin%netbsd.org@localhost wrote:> + setlocale(LC_ALL, "C"); /* not UTF-8, force "C" */>Make that: setlocale(LC_CTYPE, "C"); -RVP