This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: unexpected high-bit set characters in $USER variable
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Fri, 9 Nov 2018 07:43:20 -0700
- Subject: Re: unexpected high-bit set characters in $USER variable
- References: <CAKw7uVhh=0KQQMczt+3Ka6jGb2zM_xDYVHv4YQKHFEgqFHXk1A@mail.gmail.com>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
On 2018-11-09 03:24, Václav Haisman wrote:
> I have updated Cygwin after a while and now my prompt looks like
> this: \ufeffUSER@MACHINE. There appears to be some sort of UNICODE
> character at position 0 in $USER environment variable. Running `echo -n
> $USER | od -t x1` prints `0000000 ef bb bf 68 61 69 76 61 30 31`. Does
> anyone else observe this as well?
\ufeff 0xef 0xbb 0xbf is a UTF-8 Byte Order Mark which usually appears only in
UTF-8 files created by MS products. Is this set by a login script somewhere
which does a conversion from UTF-16 or to UTF-8?
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple