|
From: | Paul Eggert |
Subject: | bug#32236: df header corrupted with LANG=zh_TW.UTF-8 on macOS |
Date: | Thu, 26 Jul 2018 02:01:53 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Chih-Hsuan Yen wrote:
How about following the idea from Pádraig Brady and filter \n only?
Given the later comments it seems better to filter out encoding errors and control characters. Programs that parse the output already cannot trust the strings to be exactly right, since newlines are gonna get replaced no matter what. So there seems little benefit to copying the other garbage faithfully.
Revised proposed patch(es) attached.
0001-df-avoid-multibyte-character-corruption-on-macOS.patch
Description: Text Data
0002-df-tune-slightly.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |