]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool: output bold attribute more portably
authorMats Erik Andersson <gnu@gisladisker.se>
Wed, 15 Apr 2015 16:31:46 +0000 (18:31 +0200)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2015 22:46:27 +0000 (23:46 +0100)
* 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
gnulib-tool

index 59bcf264c6653839a0fb28a37488e0d392aa860f..c5874627d3694ce0ac529362e2f7650b02b2aabc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
+
+       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  <andreas.gruenbacher@gmail.com>
 
        qacl: Simplify HP-UX acl_nontrivial check
index eb1e5a2d119fc84033eec488df773c64ec12c66c..303df532df7fc7af3b1567c0fe6f0753634f7f17 100755 (executable)
@@ -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=