coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: df from coreutils 8.29 displays on PPC Mac OS X 10.5.8, Leopard, Ge


From: Pádraig Brady
Subject: Re: df from coreutils 8.29 displays on PPC Mac OS X 10.5.8, Leopard, German umlauts incorrectly
Date: Tue, 17 Apr 2018 00:10:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 11/04/18 09:15, Peter Dyballa wrote:
> 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
> 
>       LC_CTYPE=de_DE.UTF-8
>       LANG=de_DE.UTF-8
> 
> gdf displays:
> 
>       pete 309 /\ gdf -Th -t hfs -t smbfs
>       Dateisystem    Typ  Grö??e Benutzt Verf. Verw% Eingehängt auf
>       /dev/disk0s5   hfs     63G     58G  4,9G   93% /
>       /dev/disk0s3   hfs     18G    6,4G   12G   36% /Volumes/BSD-Linux
>       /dev/disk0s9   hfs     17G     14G  3,8G   78% /Volumes/Halde
>       /dev/disk0s7   hfs     52G     46G  5,3G   90% /Volumes/Tiger
> 
> 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
>       0000100
>       pete 312 /\ which gdf
>       /opt/local/bin/gdf
>       pete 313 /\ gdf --version
>       df (GNU coreutils) 8.29
>       Copyright © 2017 Free Software Foundation, Inc.
>       License GPLv3+: GNU GPL version 3 or later 
> <https://gnu.org/licenses/gpl.html 
>  >.
>       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".
> 
> 
> And the second bug is with god:
> 
>       pete 315 /\ gdf -Th -t hfs -t smbfs | head -1 | god -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   C   6   C   ?   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   C   $   n   g   t  sp   a   u   f  nl
>       0000100
>       pete 319 /\ god --version
>       od (GNU coreutils) 8.29
>       Copyright © 2017 Free Software Foundation, Inc.
>       License GPLv3+: GNU GPL version 3 or later 
> <https://gnu.org/licenses/gpl.html 
>  >.
>       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,

RE df, I think this is the same as https://bugs.gnu.org/25630
where I postulated there may be some issue with
mbstowcs() and decomposed characters on OSX




reply via email to

[Prev in Thread] Current Thread [Next in Thread]