Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/external/historical/nawk/dist



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