From 75d1743ac50af4bc1661bfb43d749c9718d1e310 Mon Sep 17 00:00:00 2001 From: Mats Erik Andersson Date: Wed, 15 Apr 2015 18:31:46 +0200 Subject: [PATCH] gnulib-tool: output bold attribute more portably * gnulib-tool (func_show_module_list): Change hexadecimal numbers to octal in BOLD_ON and BOLD_OFF. The use of hex encoded numbers as arguments to `printf' is not portable, and is not claimed by POSIX. This is the case with FreeBSD. --- ChangeLog | 8 ++++++++ gnulib-tool | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 59bcf264c6..c5874627d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2015-04-15 Mats Erik Andersson + + gnulib-tool: output bold attribute more portably + * gnulib-tool (func_show_module_list): Change hexadecimal + numbers to octal in BOLD_ON and BOLD_OFF. The use of hex + encoded numbers as arguments to `printf' is not portable, + and is not claimed by POSIX. This is the case with FreeBSD. + 2015-04-15 Andreas Gruenbacher qacl: Simplify HP-UX acl_nontrivial check diff --git a/gnulib-tool b/gnulib-tool index eb1e5a2d11..303df532df 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -2803,8 +2803,8 @@ func_show_module_list () *) false;; esac; then # Assume xterm compatible escape sequences. - bold_on=`printf '\x1b[1m'` - bold_off=`printf '\x1b[0m'` + bold_on=`printf '\033[1m'` + bold_off=`printf '\033[0m'` else bold_on= bold_off= -- 2.39.5