From 5068d20ef6ec53686488f1e48bd99e35e98efa40 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 6 Feb 2020 22:27:31 +0200 Subject: Restore zoulas fixes, step 1. --- testdir/T.builtin | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testdir') diff --git a/testdir/T.builtin b/testdir/T.builtin index 411a5e5..b36f6cb 100755 --- a/testdir/T.builtin +++ b/testdir/T.builtin @@ -29,6 +29,14 @@ $awk '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}' >foo1 echo 'hello, world!|HELLO, WORLD!|hello, WORLD!' >foo2 diff foo1 foo2 || echo 'BAD: T.builtin (toupper/tolower)' + +if locale -a | grep -qsi de_DE.UTF-8; then + (export LANG=de_DE.UTF-8 && echo 'Dürst' | + $awk '{ printf("%s|%s|%s\n", tolower($0), toupper($0), $0)}') >foo1 + echo 'dürst|DÜRST|Dürst' >foo2 + diff foo1 foo2 || echo 'BAD: T.builtin (toupper/tolower) for utf-8' +fi + $awk 'BEGIN { j = 1; sprintf("%d", 99, ++j) # does j get incremented? if (j != 2) -- cgit v1.2.3