public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* unexpected high-bit set characters in $USER variable
@ 2018-11-09 10:24 Václav Haisman
  2018-11-09 14:43 ` Brian Inglis
  0 siblings, 1 reply; 2+ messages in thread
From: Václav Haisman @ 2018-11-09 10:24 UTC (permalink / raw)
  To: cygwin

Hi.

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?

-- 
VH

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unexpected high-bit set characters in $USER variable
  2018-11-09 10:24 unexpected high-bit set characters in $USER variable Václav Haisman
@ 2018-11-09 14:43 ` Brian Inglis
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Inglis @ 2018-11-09 14:43 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-09 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-09 10:24 unexpected high-bit set characters in $USER variable Václav Haisman
2018-11-09 14:43 ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).