[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnulib-tool: use bold font portably
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] gnulib-tool: use bold font portably |
Date: |
Wed, 15 Apr 2015 23:49:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
On 15/04/15 21:23, Mats Erik Andersson wrote:
> Hello there,
>
> when 'gnulib-tool' is listing modules in bold type,
> it does so in a non-portable way. FreeBSD displays
> this failure, since its printf(1) is not accepting
> hexadecimally encoded characters. In fact, the POSIX
> manual page printf(1p) mentions octal encoding as
> the only valid mechanism. Patch follows.
This might be more portable again:
bold_on=`tput bold 2>/dev/null || tput md 2>/dev/null | printf '\033[1m'`
Thought may be overkill.
I've applied your patch as is.
thanks!
Pádraig.