The page cache is one directory per document; the shipped suites measure under a UTF-8 locale (from dev 3321e7c9e36e)

This commit is contained in:
ack committed 2026-10-19 00:44:35 +02:00
1 parent d09909a111
commit 73feb007c5
8 files changed
+51 -9

No files matched your search

+5 -2
View File
@@ -49,6 +49,9 @@ else
fi
# shows NAME PATTERN CMD... — exits 0 and the output matches PATTERN.
# The matching grep alone runs under a UTF-8 locale (TODO 78): under C its
# "." counts bytes, so the width test 10a fails and 10b can falsely pass; the
# command itself keeps the caller's locale.
shows() {
local name="$1" pattern="$2"; shift 2
local out status
@@ -56,7 +59,7 @@ shows() {
if [ $status -gt 128 ]; then
echo "${red}FAIL${reset} $name — died by signal $((status-128))"; FAIL=$((FAIL+1)); return
fi
if printf '%s' "$out" | grep -Eq -- "$pattern"; then
if printf '%s' "$out" | LC_ALL=C.UTF-8 grep -Eq -- "$pattern"; then
echo "${green}PASS${reset} $name"; PASS=$((PASS+1))
else
echo "${red}FAIL${reset} $name — no line matching [$pattern]"
@@ -67,7 +70,7 @@ shows() {
# absent NAME PATTERN CMD... — the output does NOT match PATTERN.
absent() {
local name="$1" pattern="$2"; shift 2
if limited "$@" 2>&1 | plain | grep -Eq -- "$pattern"; then
if limited "$@" 2>&1 | plain | LC_ALL=C.UTF-8 grep -Eq -- "$pattern"; then
echo "${red}FAIL${reset} $name — unexpected match [$pattern]"; FAIL=$((FAIL+1))
else
echo "${green}PASS${reset} $name"; PASS=$((PASS+1))