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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,HTML_OBFUSCATE_05_10, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13521 invoked from network); 1 Oct 2023 05:05:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2023 05:05:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1696136738; b=YtEkS0HQw6KTVbb9CEK7xnNLTjjvn4cMU9B9vy2vF7zvOWLlMqINPFo4R2OM2ax1iuKqK4sA9E WCTHeg7tga7UXpbQToMGGvisS6aiWQxSaaMbGQOADthIPpY8RKHqW/8Aoe4gpgHs7k9dClcrUT wA5s8UbX47V/RpIgvWWmErJ9QamRhibM4rG+E89zCp206dF9A1sXex7eKhdEmFK6plDqP295hc 9ok2wdQMnq3CGi/6ods74mwAqZ9/aGRMNtC4zH964lddf1CSrXcPWJ8IuCxBDVDFKwjgZZYLHq qtpsTxWDUS10Fqavns4DfqFj4jKyxbTKXbN8yyqa9yjx+Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f49.google.com) smtp.remote-ip=209.85.167.49; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1696136738; bh=z5wkosbhmVU8RajSeWG5ZywLCf0v9JD6xyA94H1NYjc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Subject:Message-ID:To:From:Date: DKIM-Signature:DKIM-Signature; b=lcqwbopM0KZNX13KI4nqV7YCmAdNc3Qvm4DZC0b/7YRRI1AtHVIK1R56rgK3q7S91SIZ5WPqOI 6XutBP3SFdXm1yk/mIL4tD4hsJaeh5qKsaDKqi7oe5z2EjeCH2JRUY3Lmekk1q7KTClMY0jOGx LWM8EdmpFjanTZEyDOudogRupUBtJewRurAfMS6/wF/bzSdOHobOYiuY8i+EaWwQEMUaVUB+bT bSSKMqse5Citns4rd1ny5G3VBDcHqvhaHGMJG0+SF7NYueX5WFZ/2mcUOBEj/ePY9qPh20L2C5 85ENPFm3M/CZp9b1IPDJ8MFc+Ci7NXrRpyUF0Ov5J/ofAg==; 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:Content-Type:MIME-Version:Subject: Message-ID:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=z5wkosbhmVU8RajSeWG5ZywLCf0v9JD6xyA94H1NYjc=; b=dGxZmnnpuj6H1+hKAXdQBi4jDb fN2B6W6cdd7KeWLieMWbgjFXH15R2wIS4U5DPKSha15ko5sWcyAMrOYZjQeBI2c/kE1rMkhIe1DWP 5LvPuo8ArJmk7OV7UXUMLvTHsH7N3zkEHGnUT9eNCb+KOf+6TAdS9YRiFt0RliRkhdpYQSyvEeQvN qLxZTqw0FgYHFscBaRcqzfo3351FH2IMUvx9UvK/q/mY+ka9Bp/Nd2gCI6GOnf6v7+FtWCQKMvpIl 1bYG6F32Bj+2nKcTDZKdbAdFJKzQvRayvO2veWvegcOUF8uMucg28mmyuNNZ+zhA1B9EvMtHfklTo HrF91Jcg==; Received: by zero.zsh.org with local id 1qmoe7-000KeJ-Dn; Sun, 01 Oct 2023 05:05:35 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f49.google.com) smtp.remote-ip=209.85.167.49; dkim=pass header.d=gmail.com header.s=20230601 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f49.google.com ([209.85.167.49]:50482) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qmodP-000KK9-FO; Sun, 01 Oct 2023 05:04:53 +0000 Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5046bf37daeso14819247e87.1 for ; Sat, 30 Sep 2023 22:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696136690; x=1696741490; darn=zsh.org; h=mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=z5wkosbhmVU8RajSeWG5ZywLCf0v9JD6xyA94H1NYjc=; b=cEzS8Om1NtE/hqoMxmc6EjLjEuYeqn03+d29W4zpSNAE7ce31G+JnaL+los2O4x3sa yTuDaTrN5M6O7TOsVjvFeZZbW2iMj/djj58DhGJxCcqFKU2DCD8O+/hnedrRayR008cQ c2hruBoe5pCyDwmujBINinTy6o4X5Njb5PgufkZFWj6Is2wUYXVIAMAovtkzy4tgT4wW UoULt2ibc1IV0rZ+DBHmOAkh0E2intDz/xzWaIHg3pgPl5JNCbMf8+JGCou6k96IVoIi pdsdesABCvyWX9VXaHob1VJmNeD+sYjy4ZjRd9WFgligSjDHvDMdEAVx016rHyH1Aqm3 UZIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696136690; x=1696741490; h=mime-version:subject:message-id:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z5wkosbhmVU8RajSeWG5ZywLCf0v9JD6xyA94H1NYjc=; b=KHie3s8UQplf/tN44lXUaztV/gOovqlkya40Mc/UKqm3Qk+3hQ4EWZqcIkutFGzGIO b2PylV73iEaUFofsS67+1VbTcfcq83Mke+3QX7oSaoEJXZrlXUBInoU6kLX+ZabDvMBf HX/nQS+sp3lXRJtM0xsCI1dquijOfIP9xeq3dnDCtq4x4Oevia2qbHwkjQu1MN77wWua POJrPsOHAim1M38GEdUqRtKCn1TeF6/vH9c130+ITqz8RNDKSY6LlQ4yXW6CEIMafo4r MmKkRYB55Ikqf+cUbj8D7o77BqWfLwegGiW8yeoK4oNsQzkjJ/rLEyyycyBEj99WzFg1 GE+w== X-Gm-Message-State: AOJu0YwxwvXhpAHMmCbR7SoPDDWmPGkH8VuASOMagg5Yi8/XMaOkwXyO tAjI+9CUirgUyDiFv4Y2OOh4cnCVX0S64isG X-Google-Smtp-Source: AGHT+IF9YLE6OQBCbBhENH5Ugg4JVAUlu0zMJUBBTHlj4tin5xx3eL9NYT7Jsw4G4zb+mS14kyo6yg== X-Received: by 2002:a05:6512:3f8:b0:4fe:7e1f:766a with SMTP id n24-20020a05651203f800b004fe7e1f766amr5865425lfq.24.1696136689668; Sat, 30 Sep 2023 22:04:49 -0700 (PDT) Received: from [192.168.0.2] ([91.197.106.157]) by smtp.gmail.com with ESMTPSA id x6-20020ac259c6000000b0050420b0a642sm4197043lfn.91.2023.09.30.22.04.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 22:04:49 -0700 (PDT) Date: Sun, 1 Oct 2023 08:04:40 +0300 From: =?utf-8?Q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC_=D0=A9=D0=B5=D1=80=D0=B1=D0=B0=D0=BA=D0=BE=D0=B2?= To: zsh-workers@zsh.org Message-ID: <816a211e-3907-420e-9c1d-d6489f805d7f@Spark> Subject: Bug when $USERNAME is cyryllic X-Readdle-Message-ID: 816a211e-3907-420e-9c1d-d6489f805d7f@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6518fdee_d34cc3c_7aa7" X-Seq: 52190 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: --6518fdee_d34cc3c_7aa7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, this is the first time I am using mailing lists, don't be mad at m= e 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=C2=A0/etc/passwd=C2=A0(before the =22roo= t=22 line, also works with other UIDs): > quote=5Ftype > =D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82:x:0:0:root:/home/=D0=A1=D1=82= =D1=83=D0=B4=D0=B5=D0=BD=D1=82:/usr/bin/zsh After logging in as =22root=22 (so environment will be good, as in this c= ase =22root=22 line is used for login), and running this commands: > quote=5Ftype > mkdir -p '/home/=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82' > env -i LANG=3DC.UT=46-8 zsh -fc 'cd; echo =22=24USERNAME =7C =24=7B(%):= -%n=7D =7C =24LOGNAME=22' I will get: > quote=5Ftype > =EF=BF=BD=D1=82=EF=BF=BD=EF=BF=BD=D0=B5=D0=BD=D1=82 =7C =D0=A1=D1=82=5C= M-Q=5CM-p=5CM-4=D0=B5=D0=BD=D1=82 =7C =D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD= =D1=82 Instead of: > quote=5Ftype > =D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82 =7C =D0=A1=D1=82=D1=83=D0=B4= =D0=B5=D0=BD=D1=82 =7C =D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82 As we can see,=C2=A0=24LOGNAME=C2=A0is fine, but=C2=A0=24USERNAME=C2=A0an= d=C2=A0%n=C2=A0are bad. ----------------------------- Also, probably related,=C2=A0zcompile=C2=A0don't work on cyryllic paths: > quote=5Ftype > touch '/home/=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82/.zc/.zcompdump-= 5.9' > zcompile '/home/=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82/.zc/.zcompdu= mp-5.9' Results in: > quote=5Ftype > zcompile: can't write zwc file: /home/=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0= =BD=D1=82/.zc/.zcompdump-5.9.zwc --6518fdee_d34cc3c_7aa7 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello, this is the first time I am using mailing li= sts, 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&=23160;/etc/passwd&=23160;(before= the =22root=22 line, also works with other UIDs):
=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1= =82:x:0:0:root:/home/=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82:/usr/bin/= zsh

After logging in as =22root=22 (so environment will be good, as in this c= ase =22root=22 line is used for login), and running this commands:
<= /div>
mkdir -p '/home/=D0=A1=D1=82=D1=83=D0=B4= =D0=B5=D0=BD=D1=82'
env -i LANG=3DC.UT=46-8 zsh -fc 'cd; e= cho =22=24USERNAME =7C =24=7B(%):-%n=7D =7C =24LOGNAME=22'

I will get:
=EF=BF=BD=D1=82=EF=BF=BD=EF=BF=BD=D0=B5= =D0=BD=D1=82 =7C =D0=A1=D1=82=5CM-Q=5CM-p=5CM-4=D0=B5=D0=BD=D1=82 =7C =D0= =A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82

Instead of:
=D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1= =82 =7C =D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82 =7C =D0=A1=D1=82=D1=83= =D0=B4=D0=B5=D0=BD=D1=82

As we can see,&=23160;=24LOGNAME&=23160;is fine, but&=23160;=24= USERNAME&=23160;and&=23160;%n&=23160;are bad.

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

Also, probably related,&=23160;zcompile&=23160;don't work on cyryl= lic paths:
touch '/home/=D0=A1=D1=82=D1=83=D0=B4=D0= =B5=D0=BD=D1=82/.zc/.zcompdump-5.9'
zcompile '/home/=D0=A1=D1=82=D1=83=D0=B4= =D0=B5=D0=BD=D1=82/.zc/.zcompdump-5.9'

Results in:
zcompile: can't write zwc file: /home/= =D0=A1=D1=82=D1=83=D0=B4=D0=B5=D0=BD=D1=82/.zc/.zcompdump-5.9.zwc

--6518fdee_d34cc3c_7aa7--