diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:49:46 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:49:46 -0400 |
commit | 74091dd4e8086db518b30df7f222691524469998 (patch) | |
tree | ebe89d8f0ed44b7f79aa3c759d3f85e15996eaee /tests/printf2.sub | |
parent | 9439ce094c9aa7557a9d53ac7b412a23aa66e36b (diff) | |
download | bash-74091dd4e8086db518b30df7f222691524469998.tar.gz |
bash-5.2 distribution sources and documentationbash-5.2
Diffstat (limited to 'tests/printf2.sub')
-rw-r--r-- | tests/printf2.sub | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/printf2.sub b/tests/printf2.sub index 45c48d4c..94a2bb10 100644 --- a/tests/printf2.sub +++ b/tests/printf2.sub @@ -1,6 +1,12 @@ unset LC_ALL LC_CTYPE -export LANG=en_US.UTF-8 +export LANG=C +case $(printf %d\\n \'A) in +65) ;; +*) echo "printf2.sub: character conversion failed" >&2 ;; +esac + +export LANG=en_US.UTF-8 case $(printf %d\\n \'À) in 192) exit 0;; *) echo "printf2.sub: multibyte character conversion failed" >&2 ; exit 2 ;; |