* tests/sort/sort-locale.sh: Avoid non portable printf \u....
* cfg.mk (sc_env_printf): Add a new syntax check to flag future cases.
|| echo $$test should call: print_ver_ $$prog; \
done | grep . && exit 1 || :
+# Enforce using our printf if using \u or \x
+sc_env_printf:
+ @cd $(top_srcdir) && GIT_PAGER= git grep 'printf.*[^\\]\\[ux]' tests \
+ | grep -v -- '--printf' | grep -v 'env printf' \
+ && { echo 'use "env printf" with \x or \u'; exit 1; } || :
+
# Use framework_failure_, not the old name without the trailing underscore.
sc_prohibit_framework_failure:
@prohibit='$(begword)framework_''failure$(endword)' \
export LC_ALL=$LOCALE_FR_UTF8
if test "$(locale charmap 2>/dev/null)" = UTF-8; then
check_hard_collate 'aaé' 'aaf' # é comes before f
- check_hard_collate 'aéY' "$(printf 'ae\u0301Z')" # NFC/NFD é are equal
+ check_hard_collate 'aéY' "$(printf 'ae\314\201Z')" # NFC/NFD é are equal
fi
Exit $fail