Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 18:55:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223598] ls utf output
Message-ID:  <bug-223598-8-okNYd39uZ1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223598-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223598-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223598

Conrad Meyer <cem@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cem@freebsd.org

--- Comment #2 from Conrad Meyer <cem@freebsd.org> ---
If ls's output is going to a tty (ordinary shell session), it defaults to
f_nonprint=3D1, which replaces anything not printable in the current locale=
 as ?.
 When you pipe its output to anything else (grep, cat, whatever), it defaul=
ts
to f_nonprint=3D0, passing the raw bytes through.  Your local terminal is in
UTF-8 mode and can decode the bytes.

This behavior can be overridden with 'ls -w'.  Or you can set any of LANG,
LC_CTYPE, or LC_ALL to a UTF-8 locale to fix plain 'ls'.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223598-8-okNYd39uZ1>