bug#11922: df doesn't handle \n in mount entries appropriately
From:
PƔdraig Brady
Subject:
bug#11922: df doesn't handle \n in mount entries appropriately
Date:
Mon, 16 Jul 2012 02:46:19 +0100
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0
On 07/13/2012 04:05 PM, PƔdraig Brady wrote:
> On 07/13/2012 04:03 PM, Jim Meyering wrote:
>> PƔdraig Brady wrote:
>>> On 07/12/2012 05:11 PM, PƔdraig Brady wrote:
>
>>> * src/df.c (hide_problematic_chars): Replace '\n' with '\?'.
>>
>> Thanks. That looks fine, but shouldn't the '\?' above be just '?'
>
> oops thanks.
I adjusted a bit and now replace all control chars (< 0x20) with '?'.
They're easy to handle in all encodings and can only be problematic.
I added a test too.
I've pushed the attached, so I'm marking this done.
cheers,
PƔdraig.