unexpected high-bit set characters in $USER variable
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Fri Nov 9 14:43:00 GMT 2018
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
More information about the Cygwin
mailing list