df from coreutils 8.29 displays on PPC Mac OS X 10.5.8, Leopard, German
From:
Peter Dyballa
Subject:
df from coreutils 8.29 displays on PPC Mac OS X 10.5.8, Leopard, German umlauts incorrectly
Date:
Wed, 11 Apr 2018 18:15:15 +0200
Hello!
The coreutils package is managed by the MacPorts package manager. It
installs in /opt/local and probably used the Apple enhanced GCC 4.2.4.
In an environment with
You can see the word "Grö??e" displayed in the header. od (that from
Mac OS X works correctly, later more) dumps in a shell buffer in GNU
Emacs:
pete 311 /\ gdf -Th -t hfs -t smbfs | head -1 | od -t a
0000000 D a t e i s y s t e m sp sp sp
sp T
0000020 y p sp sp G r \303 \266 \303 ? e sp
B e n u
0000040 t z t sp V e r f . sp V e r w %
sp
0000060 E i n g e h \303 \244 n g t sp a
u f nl
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Geschrieben von Torbjorn Granlund, David MacKenzie und Paul Eggert.
You can see gdf does not produce the proper codes. "ö" is in UTF-8 'C3
86' and ß is 'C3 9F'. In octal notation they are "\303 \206" resp.
"\303 \237". ä is correctly output as 'C3 A5' or "\303 \244".
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Geschrieben von Jim Meyering.
It converts inappropriate input simply into some nonsense instead of
preserving the original faulty input for the educated reader. It
would, OTOH, be an advantage if god would output faulty input in ASCII
text output mode as text, i.e. \ <digit> <digit> <digit>.
And yes, both utilities produce the exactly same errors on a Mac with
recent macOS High Sierra, Version 10.13.4,
--
Greetings
Pete
Without vi there is only GNU Emacs
PGP.sig Description: Signierter Teil der Nachricht