X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=dQRex4WiE6pbkEpI 2sx5eXI+EP4sZ29n1k/lIMKHMeEK5nFlYmbPMvKFOhJ56xD9Azq1QnH1o1iffBr+ QKbYx6eLvzCD+Ms7EcFJV2r7szONL0gmEyUkfXFHM+n6WugUjbfpWK1gFROA1Pxq dIXL8VPCshmhxbsKexYaqtZaiWg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=g/9/4ix7w76oCoFeX8j6lg 8gZ3g=; b=p7Cm0ItLtRk1mVdB4xRaKUBmyzPQ+WixNAehf3+Z8pxD969eXdf/M0 Q9eSLRUHtM4ZiGMkpJwlqtOv+XZRfCvo63bm1kvwcdNaEIoa+HLZYm9Py7C3jeRi dApunFs1hMp75NgTI+KF9NFC9tpJF2lw0i6Gc5iJmzds6LDkJ/Bxo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=0.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=calgary, Calgary, v=c3=a1clav, inglis?= X-HELO: smtp-out-so.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: unexpected high-bit set characters in $USER variable To: cygwin AT cygwin DOT com References: From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <176f1ee7-6a29-6998-ed9a-073abb8dad58@SystematicSw.ab.ca> Date: Fri, 9 Nov 2018 07:43:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 AT 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