From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19629 invoked from network); 1 Oct 2023 07:04:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2023 07:04:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1696143884; b=oVRnAqQUpmATjKEHtKBcdKFJuYMGRvSr4QI1YcHzzvlQyAuyDQGN/sua/3Rrh3C9QOxIr+gxr2 aT7Q3X6jkVbOJSjJKtKYl0tZUv13SkoWaMq1am3lJLg5RzOSb5LBQ+IwjwHJpp/B8ltuEu7L4R AHTVHHd1x8jOeIoepwtezfeIKBvR3nmQ0+fEgQ7IxGLupJX0h2e3wacRXqLjZ7/J4wUQ/1jMqO UCSGPkwdaTAnG70Rnj5nAG2QU1arDfqlRGUAPl+J5deAXirBf55VGPu0YOfezWIOjF+dpmhKb0 99ceA3KjVGJRYwZw+aOgYXQ+O0bAsw1p8Wf8XQpjVSgsDA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (invictus.wa.us.umbrellix.net) smtp.remote-ip=45.76.244.95; dmarc=none header.from=umbrellix.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1696143884; bh=HGBmCqxzdCdwGJzeO1kSO4lGYIym8jpOBf4+Yc4zm1s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:References:To:Subject:From:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature:DKIM-Signature; b=AmKg0xlGzSJmKIKSm4ON4jamXLnxaaoFdub1HjQxywUulp0VZXMGq2eLOxLaE976ETqcXajENe jZ4r92buC60w+D7ZjuMcXcTXOcGLPxwwQ/aTos1RZ7hgW8Dp6jQHt5Xn2tAOhspMjfmt6oMjnM AcNJ3yNjZPXEOG1BVroSQaIzCTHKTtLjl55fC8h8bRSRzeMT04vkkwFxlZfEANe5puIuid0AaY UjxQViiMerg/hNjtM4W0KTUP8A1wyx4xM72ifUNs45AAcMq0IJu/62WXtWPO7Rxvt3RQ0Lq1fD X7sJjR46sjwzXuaByteUp0+2ZobVqGW7crYedjkG4o9/xw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:References:To:Subject: From:MIME-Version:Date:Message-ID:Content-Type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=VXXD1ObN1GuPw6qb8tkUloCfoPAA/kDCSNPSpG072w0=; b=soHQ1ihinSR1vjxo60OdsJ7t5u Th3xoRhcKBCVlaJttOqFlh09x99FO25KfOIl/uABOWoOzAiJC81pY06PnhzYp3SOLoRgCM8pOvQO8 hxypy5wOnJFRieur+LZFUqs9rFUpD3dtKm7xFbOgSlGOS8iTDtpVi9W4M5c8K4dDGHyl5JLAI4xju OQFoPxyjP7vZrHDb5fM/KRAPmD2McEnu8d2nQ1lGPKAWyClSk+WXrqd+e4ihXgMS1K7hvXQ3MDPaX oL+j2c9655UcukcrQBLGw+1adr+cQ9X6B8092vFFMGnUdimIyp6EU1ABUX+3Uw+MWS39xAu1AtXPe ESlzrm9w==; Received: by zero.zsh.org with local id 1qmqVP-000O87-1w; Sun, 01 Oct 2023 07:04:43 +0000 Authentication-Results: zsh.org; iprev=pass (invictus.wa.us.umbrellix.net) smtp.remote-ip=45.76.244.95; dmarc=none header.from=umbrellix.net; arc=none Received: from invictus.wa.us.umbrellix.net ([45.76.244.95]:25560) by zero.zsh.org with esmtp id 1qmqUk-000Now-C7; Sun, 01 Oct 2023 07:04:05 +0000 Received: (qmail 27172 invoked from network); 1 Oct 2023 07:04:00 -0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=umbrellix.net; s=umbrellix.net; x=1696748640; h=Content-Type: Message-ID:Date:MIME-Version:User-Agent:From:Subject:To: References:Content-Language:Organization:In-Reply-To; bh=IGWVFJr 9i0QVeuNPEgwQBEUBEMA=; b=VdI2AfwWIxAI79hrLdqatGTMjvS813MHNrdYCcV KY3yYfWz433tZq3yUjlCfKdF2KSGoCGj4CU//f7+QxPJ2owq9/QltzL92sCd5qO5 Za/PLcy1mjqUCpSTMm2+S0OnDirhOpUlZlh2EZKc/JQJYMCdfzPoiQMjZhAnIx98 KXGk= Received: from [10.5.1.92] (S01068c04ba9e4252.ca.shawcable.net [50.69.224.237]) by postfix.invictus.wa.us.umbrellix.net (Postfix) with ESMTPSA id 05DD0768EF; Sun, 1 Oct 2023 07:03:59 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------bteIIX0R9OqBw8O8YM4CB08o" Message-ID: <7c495233-52ca-6d8a-c647-3a547c451b84@umbrellix.net> Date: Sun, 1 Oct 2023 07:04:00 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 From: Ellenor Bjornsdottir Subject: Re: Bug when $USERNAME is cyryllic To: zsh-workers@zsh.org, =?UTF-8?B?0JzQsNC60YHQuNC8INCp0LXRgNCx0LDQutC+0LI=?= References: <816a211e-3907-420e-9c1d-d6489f805d7f@Spark> Content-Language: en-US Organization: Umbrellix In-Reply-To: <816a211e-3907-420e-9c1d-d6489f805d7f@Spark> X-Seq: 52191 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This is a multi-part message in MIME format. --------------bteIIX0R9OqBw8O8YM4CB08o Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Maksim, What UNIX are you using where that's a valid username? If Linux, what distribution? Not disparaging it, just wondering. I agree that this is not how zsh should be behaving. Are other shells (e.g. bash, Korn, tcsh) behaving correctly? In English, we call the script used in Russia, Ukraine, Belarus, and a few other countries (including most internal vassals of Russia, as well as Bulgaria, Serbia (sometimes), Montenegro, Mongolia, Tajikistan, and until recently Kazakhstan) to write their native languages "Cyrillic", not "Cyryllic". Your English spelling and grammar is otherwise entirely acceptable. Le 1 octobre 2023 05:04:40 UTC, "Максим Щербаков" a écrit : Hello, this is the first time I am using mailing lists, don't be mad at me if I do something wrong. Sorry for errors, English is not my native language. I found a bug in zsh: If I add this line to the top of _/etc/passwd_ (before the "root" line, also works with other UIDs): Студент:x:0:0:root:/home/Студент:/usr/bin/zsh After logging in as "root" (so environment will be good, as in this case "root" line is used for login), and running this commands: mkdir -p '/home/Студент' env -i LANG=C.UTF-8 zsh -fc 'cd; echo "$USERNAME | ${(%):-%n} | $LOGNAME"' I will get: �т��ент | Ст\M-Q\M-p\M-4ент | Студент Instead of: Студент | Студент | Студент As we can see, _$LOGNAME_ is fine, but _$USERNAME_ and _%n_ are bad. ----------------------------- Also, probably related, _zcompile_ don't work on cyryllic paths: touch '/home/Студент/.zc/.zcompdump-5.9' zcompile '/home/Студент/.zc/.zcompdump-5.9' Results in: zcompile: can't write zwc file: /home/Студент/.zc/.zcompdump-5.9.zwc -- Ellenor Agnes Bjornsdottir (she) sysadmin umbrellix.net jabber: ellenor ~on~ umbrellix.net --------------bteIIX0R9OqBw8O8YM4CB08o Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Maksim,

What UNIX are you using where that's a valid username? If Linux, what distribution?

Not disparaging it, just wondering. I agree that this is not how zsh should be behaving. Are other shells (e.g. bash, Korn, tcsh) behaving correctly?

In English, we call the script used in Russia, Ukraine, Belarus, and a few other countries (including most internal vassals of Russia, as well as Bulgaria, Serbia (sometimes), Montenegro, Mongolia, Tajikistan, and until recently Kazakhstan) to write their native languages "Cyrillic", not "Cyryllic". Your English spelling and grammar is otherwise entirely acceptable.

Le 1 octobre 2023 05:04:40 UTC, "Максим Щербаков" <herobrine135111@gmail.com> a écrit :
Hello, this is the first time I am using mailing lists, don't be mad at me if I do something wrong.
Sorry for errors, English is not my native language.


I found a bug in zsh:

If I add this line to the top of /etc/passwd (before the "root" line, also works with other UIDs):
Студент:x:0:0:root:/home/Студент:/usr/bin/zsh

After logging in as "root" (so environment will be good, as in this case "root" line is used for login), and running this commands:
mkdir -p '/home/Студент'
env -i LANG=C.UTF-8 zsh -fc 'cd; echo "$USERNAME | ${(%):-%n} | $LOGNAME"'

I will get:
�т��ент | Ст\M-Q\M-p\M-4ент | Студент

Instead of:
Студент | Студент | Студент

As we can see, $LOGNAME is fine, but $USERNAME and %n are bad.

-----------------------------

Also, probably related, zcompile don't work on cyryllic paths:
touch '/home/Студент/.zc/.zcompdump-5.9'
zcompile '/home/Студент/.zc/.zcompdump-5.9'

Results in:
zcompile: can't write zwc file: /home/Студент/.zc/.zcompdump-5.9.zwc

-- 
Ellenor Agnes Bjornsdottir (she)
sysadmin umbrellix.net
jabber: ellenor ~on~ umbrellix.net
--------------bteIIX0R9OqBw8O8YM4CB08o--