From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35218 invoked by alias); 5 Mar 2018 17:05:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 35095 invoked by uid 89); 5 Mar 2018 17:05:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,GIT_PATCH_2,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=nuts, reply!, H*UA:14.0, H*x:14.0 X-HELO: sonic316-11.consmr.mail.gq1.yahoo.com Received: from sonic316-11.consmr.mail.gq1.yahoo.com (HELO sonic316-11.consmr.mail.gq1.yahoo.com) (98.137.69.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Mar 2018 17:05:35 +0000 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Mon, 5 Mar 2018 17:05:33 +0000 Received: from smtp101.rog.mail.gq1.yahoo.com (EHLO spiro1) ([67.195.22.105]) by smtp409.mail.gq1.yahoo.com (JAMES SMTP Server ) with ESMTPA ID 5be36122789f2f3bfea5588890c01641 for ; Mon, 05 Mar 2018 17:05:32 +0000 (UTC) From: "Michel LaBarre" To: References: <000a01d3b4a0$f54ede30$dfec9a90$@rogers.com> <20180305164448.GC25306@calimero.vinschen.de> In-Reply-To: <20180305164448.GC25306@calimero.vinschen.de> Subject: RE: sed seems to force UC filename on Mixed 8.3 filenames on FAT32 Date: Mon, 05 Mar 2018 17:13:00 -0000 Message-ID: <000a01d3b4a4$2b9c0dc0$82d42940$@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00067.txt.bz2 > -----Original Message----- > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On > Behalf Of Corinna Vinschen >=20 > On Mar 5 11:42, Michel LaBarre wrote: > > > > > Behalf Of Fergus Daly > > > Starting to look exactly like that. On Windows 7 there is no problem. > > > On earlier W10 machines in this office there is no problem. My machine > > > underwent a massive (time-consuming) update on or around 13-FEB to > > > Microsoft Windows Version 1709 Build 16299.248] > > > from the previous > > > Microsoft Windows Version 1703 Build 15063.936] > > > and the troubles began then: > > > > > > ~> touch TryThis.TxT > > > ~> ls T* > > > TryThis.TxT > > > ~> dos2unix TryThis.TxT > > > dos2unix: converting file TryThis.TxT to Unix format... > > > ~> ls T* > > > TRYTHIS.TXT > > > > > > This on a FAT32 stick. (Can anybody confirm this behaviour?) So I'm > > > guessing Windows has revised its default mount shortname syntax for > > > VFAT. Is there a way I can climb in and alter / override that, does > > > anybody know? > > > > I have the same build 16299.248 and I get the same behaviour. > > Perhaps consider: http://www.zoneutils.com/regtricks/filesystem.htm > > for parameters to experiment with. You can use fsutil to control some = of > these to avoid direct registry modifications. > > I expect it is more subtle otherwise the pervasive nature of the flags = would > mean that any file creation would result in UC names, not just dos2unix. > > i.e. ls > Foo.txt should produce FOO.TXT >=20 > Maybne something with overwriting existung files? What if you call > `ls > Foo.txt' twice in a row? >=20 Nope - that works ok. (BTW - you were fast on the reply!) I did try: E:\>dos2unix -n Zot.txt Foo.txt dos2unix: converting file Zot.txt to file Foo.txt in Unix format... E:\>ls Foo.txt Zot.txt I thought using -n might suffice as a quick workaround for Fergus so I trie= d: E:\>dos2unix -n Zot.txt Zot.txt dos2unix: converting file Zot.txt to file Zot.txt in Unix format... E:\>ls Foo.txt ZOT.TXT Nuts! So the problem manifests if the input and output files are the same = whether using -n or not. (Sorry Fergus - no workaround.) As an aside, I experimented with "ed" to change a file and re-write it pres= uming it might behave as dos2nix - nope - it preserved mixed case ok.=20=20 Michel >=20 > Corinna >=20 > -- > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat -- 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