LC_ALL=$LOCALE_FR_UTF8
export LC_ALL
+test $(env printf '\uB250\uFF1A' | wc -L) -eq 4 ||
+ skip_ "character width mismatch"
+
# The string "뉐뉐뉐" is 3 characters, but occupies 6 columns.
env printf '\uB250\uB250\uB250\n' > input1 || framework_failure_
env printf '\uB250\uB250\n\uB250\n' > column-exp1 || framework_failure_
LC_ALL=$LOCALE_FR_UTF8
export LC_ALL
+test $(env printf '\u200B' | wc -L) -eq 0 ||
+ skip_ "character width mismatch"
+
# Same thing, but using U+200B ZERO WIDTH SPACE.
yes $(env printf '\u200B') |
head -n $IO_BUFSIZE_TIMES2 | tr -d '\n' > inp || framework_failure_
# The downstream I18N patch made fold(1) exit with success for non-existing
# files since v5.2.1-1158-g3d3030da6 (2004) changed int to bool for booleans.
# The I18N patch was fixed only in July 2024. (rhbz#2296201).
- ['enoent', 'enoent', {EXIT => 1},
- {ERR=>"$prog: enoent: No such file or directory\n"}],
+ ['enoent', 'enoent', {EXIT => 1}, {ERR_SUBST=>"s/.*//msg"}],
- # The downstream I18N patch made 'fold -b' mishandled '\n' in UTF locales.
+ # The downstream I18N patch made 'fold -b' mishandle '\n' in UTF locales.
# The I18N patch was fixed only in Sep 2024. (RHEL-60295)
['bw1', '-b -w 4', {IN=>"abcdef\nghijkl"}, {OUT=>"abcd\nef\nghij\nkl"}],
['bw2', '-b -w 6', {IN=>"1234567890\nabcdefghij\n1234567890"},