[Top][All Lists]

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

bug#25630: [bug/df] Unicode is not supported on mounted point when I exe

From: Pádraig Brady
Subject: bug#25630: [bug/df] Unicode is not supported on mounted point when I execute "df" command
Date: Mon, 6 Feb 2017 19:44:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 05/02/17 21:49, Jaeseok Park wrote:
> Hi.
> I'm using coreutils on OSX.
> I have a USB storage which has the name "무제".
> It is Korean characters and it means "NO NAME".
> However, when I execute "df", it shows as below:
> /dev/disk3s1     7563232   2510624   5052608  34% /Volumes/�??�?��??�?�
> It seems not to support Unicode charaters.
> Could you please fix it?

Yes our replacement function in df is simplistic,
and doesn't deal with all encodings. See:

Now the fact that you have both types of replacement chars
� (from mbsalign) and ? (from df),
suggests there is some mismatch in encodings.

What is the value of $LC_ALL and $LANG on your system?
What encoding is the file on disk? I presume some variant of ISO-2022-KR,
though I couldn't correlate that with the above output.
The encoding of the file on disk should be indicated by:
  LC_ALL=C gls --quoting=shell-escape -1 /Volumes

If it was possible to use UTF-8 representation of /Volumes/무제
then it would be displayed without issue.


reply via email to

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