From: Mats Erik Andersson Date: Wed, 15 Apr 2015 16:31:46 +0000 (+0200) Subject: gnulib-tool: output bold attribute more portably X-Git-Tag: v1.0~7094 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=75d1743ac50af4bc1661bfb43d749c9718d1e310;p=gnulib.git 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. --- 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=