X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76204384A87E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1591493749; bh=5xMS9/nppc2/B2a+nqPfaEwcgOmTOYNtSTMDavPc46M=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=FwfCke9dU0HpCo+LY1j4MPD/SDfRv2X7dYsGZJKRzHYRnGfYagq2nvDEBhl3O7hyK CvdDQtzCeELAmZB+HUSLtbJnX3aFhjMteKcngm0dA02RjcbORSYufUmfhzAKZY13T2 lYLosShidZOVS3Ena8ZBtmYilHkVo4gx0DsoGo1M= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4E7693851C05 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 0571ZN7R023236 X-Nifty-SrcIP: [124.155.38.192] Date: Sun, 7 Jun 2020 10:35:28 +0900 To: cygwin AT cygwin DOT com Subject: Re: cygwin-3.1.0 and mintty from desktop shortcut Message-Id: <20200607103528.2eaea7de72b0afaa43d0b335@nifty.ne.jp> In-Reply-To: <87v9k4e8zz.fsf@Otto.invalid> References: <87pngmx26z DOT fsf AT Rainer DOT invalid> <20191218090415 DOT GG10310 AT calimero DOT vinschen DOT de> <87a77pbn5j DOT fsf AT Rainer DOT invalid> <87blp2lr6p DOT fsf AT Rainer DOT invalid> <20200311195142 DOT GH4042 AT calimero DOT vinschen DOT de> <87d09htlac DOT fsf AT Rainer DOT invalid> <20200313100325 DOT fe62798353f4c719ecf565e0 AT nifty DOT ne DOT jp> <87v9k4e8zz DOT fsf AT Otto DOT invalid> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On Sat, 06 Jun 2020 13:20:16 +0200 ASSI wrote: > Takashi Yano via Cygwin writes: > >> 1. Rename /usr/share/locale to something else, like local.bak. > >> 2. Start mintty in the usual way. > >> 3. Rename the directory from step 1 back to /usr/share/local. > >> 4. Work just like the problem never existed either in the shell running > >> inside the mintty or even start a new mintty. > > > > I guess renaming /usr/share/locale/locale.alias is enough. > > I've had some time to look into this problem again after having updated > Cygwin to the latest and greatest. Indeed, when > > /usr/share/locale/locale.alias > > gets renamed, the problem also goes away. This is great because I don't > really need the locale aliases for anything. Btw, my laptop got > upgraded to Win10 1909 (Enterprise) in the meantime, so the issue isn't > specific to 1803 as was supected earlier. > > I then tried to figure out what exactly causes the problem and it turns > out that it's the _presence_ of this file with the additional condition > that it must not be owned by the user starting the mintty/shell. Since > I install Cygwin on my work laptop with a different (admin) account and > not my (non-admin) user account, that explains why I am seeing the > problem there and not on other machines. Before you are going to > suggest that it's the admin vs. non-admin rights: no, if I create a > locale.alias with my user account (either as an empty file or a copy of > the backup file), then the admin account is unable to start a shell in > mintty successfully. I have no idea why the ownership of a file that > onnly should get read (and is readable by everyone) would have the > effect I'm seeing, but maybe that gives the clue on where to look for a > fix. Thanks for the additional information. I tested the following steps to confirm if the problem can be reproduced. 1. Enable Administrator account. 2. Remove all groups from account yano other than Users. 3. Install cygwin for all with gettext package as Administrator. 4. Run mintty from desktop shortcut as Administrator. 5. Run mintty from desktop shortcut as yano. Both 4 and 5 successfully open mintty window with shell. I wonder what is the difference between my environment and yours. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple