Re: unexpected high-bit set characters in $USER variable
- Date: Fri, 9 Nov 2018 07:43:20 -0700
- From: Brian Inglis <Brian.Inglis@xxxxxxxxxxxxxxxxxx>
- Subject: Re: unexpected high-bit set characters in $USER variable
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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple