NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: PR/58619 CVS commit: src/external/historical/nawk/dist
-------- Forwarded Message --------
Subject: CVS commit: src/external/historical/nawk/dist
Date: Mon, 2 Sep 2024 01:04:35 +0000
From: Rin Okuyama <rin%netbsd.org@localhost>
Reply-To: source-changes-d%NetBSD.org@localhost
To: source-changes-full%NetBSD.org@localhost
Module Name: src
Committed By: rin
Date: Mon Sep 2 01:04:35 UTC 2024
Modified Files:
src/external/historical/nawk/dist: main.c
Log Message:
nawk: Fix previous for UTF-8 locales
We need `setlocale(LC_CTYPE, "")` before `nl_langinfo(CODESET)`.
Otherwise, `nl_langinfo(CODESET)` returns "646" (== ASCII)
regardless of environment variables.
This fixes regression for usr.bin/awk/t_awk:multibyte.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/historical/nawk/dist/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index