diff gnulib-tool @ 17964:5a6167820a2c

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.
author Mats Erik Andersson <gnu@gisladisker.se>
date Wed, 15 Apr 2015 18:31:46 +0200
parents 6f3245c005ea
children d0c8068a7c6f
line wrap: on
line diff
--- a/gnulib-tool	Sun Apr 12 16:36:38 2015 +0200
+++ b/gnulib-tool	Wed Apr 15 18:31:46 2015 +0200
@@ -2803,8 +2803,8 @@
        *) 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=