public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: sed seems to force UC filename on Mixed 8.3 filenames on FAT32
@ 2018-03-05  9:05 Fergus Daly
  2018-03-05 16:44 ` Michel LaBarre
  0 siblings, 1 reply; 20+ messages in thread
From: Fergus Daly @ 2018-03-05  9:05 UTC (permalink / raw)
  To: The Cygwin Mailing List

>> ..."or operation on FAT32 was changed by Windows updates."

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?

Fergus

--
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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: sed seems to force UC filename on Mixed 8.3 filenames on FAT32
@ 2018-03-06 14:57 Fergus Daly
  2018-03-06 17:58 ` Brian Inglis
  0 siblings, 1 reply; 20+ messages in thread
From: Fergus Daly @ 2018-03-06 14:57 UTC (permalink / raw)
  To: The Cygwin Mailing List

>> I looked for recent similar issues and only found
https://superuser.com/questions/1297658/folder-names-become-uppercase-when-syncing-to-fat32-drive

>> So if other users of this Win10 build start tripping on this same problem and reporting it, it may get looked at by MS.

The site you mention also asked about variations in hardware or
formatting mechanism. I find the identical behaviour in USB drives
(local) and USB sticks (removable). In the past I have used Hitachi
Microdrive to render Removable sticks Local, but can't find a version
of this driver upgrade for 64-bit. (Not one that works, anyway.
Several that don't.) Also identical behaviours whether the filesystem
is formatted FAT32 in Windows or formatted FAT32 in Linux.

So summarising:

SOME (but not ALL) file transactions on FAT32 result in

"Mixed case but no spaces 8.3" -> "ALL UPPER CASE 8.3"

Examples are sed and dos2unix (and family); but not nano, or joe. I
can't think of anything that I could reasonably test on a folder
rather than a file to see the effect on foldername.

Goodness knows how to upstream anything to MS.

Finally, there was another Windows update yesterday, 05-MAR-2018: to
version 1709 OS build 16299.251. Hopes of a return to correct
behaviours were immediately dashed. :o(

Fergus

--
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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: sed seems to force UC filename on Mixed 8.3 filenames on FAT32
@ 2018-03-03  8:36 Fergus Daly
  2018-03-03 18:14 ` Brian Inglis
  0 siblings, 1 reply; 20+ messages in thread
From: Fergus Daly @ 2018-03-03  8:36 UTC (permalink / raw)
  To: The Cygwin Mailing List

>> Run stat on original and converted files.

OK. I get this:

~> stat /j/PStart.xml
  File: /j/PStart.xml
  Size: 7233            Blocks: 8          IO Block: 65536  regular file
Device: a6418e7fh/2789314175d   Inode: 7206475022584976007  Links: 1
Access: (0644/-rw-r--r--)  Uid: (197609/ fergusd)   Gid: (197609/ fergusd)
Access: 2018-03-03 00:00:00.000000000 +0000
Modify: 2018-03-02 11:50:12.000000000 +0000
Change: 2018-03-02 11:50:12.000000000 +0000
 Birth: 2018-03-02 09:26:44.060000000 +0000

~> dos2unix.exe /j/PStart.xml
dos2unix: converting file /j/PStart.xml to Unix format...

~> stat /j/PSTART.XML
  File: /j/PSTART.XML
  Size: 6943            Blocks: 8          IO Block: 65536  regular file
Device: a6418e7fh/2789314175d   Inode: 7206475022584976007  Links: 1
Access: (0644/-rw-r--r--)  Uid: (197609/ fergusd)   Gid: (197609/ fergusd)
Access: 2018-03-03 00:00:00.000000000 +0000
Modify: 2018-03-03 08:27:16.000000000 +0000
Change: 2018-03-03 08:27:16.000000000 +0000
 Birth: 2018-03-03 08:27:15.210000000 +0000


Does that help at all?

It's not so much the behaviour on FAT32, which I could put up with as
a filesystem pehenomenon if it had always been the case: but it's just
started in the past few days. Can't think what has been updated that
would cause this change. Previously sed and dos2unix which I use
constantly (and others) did NOT change the case of the filename.

Fergus

--
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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: sed seems to force UC filename on Mixed 8.3 filenames on FAT32
@ 2018-03-02  9:41 Fergus Daly
  2018-03-02 16:55 ` Brian Inglis
  0 siblings, 1 reply; 20+ messages in thread
From: Fergus Daly @ 2018-03-02  9:41 UTC (permalink / raw)
  To: The Cygwin Mailing List

.. AND dos2unix:

~> ls -al /j/P*
-rw-r--r-- 1 dell ferg   6767 Mar  2 09:15 /j/PStart.xml
~> dos2unix /j/PStart.xml
dos2unix: converting file /j/PStart.xml to Unix format...
~> ls -al /j/P*
-rw-r--r-- 1 dell ferg   6767 Mar  2 09:16 /j/PSTART.XML

So something a bit major seems to be going on .. ..

Fergus

--
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

^ permalink raw reply	[flat|nested] 20+ messages in thread
* sed seems to force UC filename on Mixed 8.3 filenames on FAT32
@ 2018-03-02  9:22 Fergus Daly
  0 siblings, 0 replies; 20+ messages in thread
From: Fergus Daly @ 2018-03-02  9:22 UTC (permalink / raw)
  To: The Cygwin Mailing List

Noticed just lately that sed seems to force 8.3 (all upper-case)
file-naming if applied to 8.3 file on FAT32 filesystem. For example

~> ls -al /j/P*
-rw-r--r-- 1 dell ferg   6767 Mar  2 09:15 /j/PStart.xml
~> sed -i '/count/d ; /date/d ; /time/d' /j/PStart.xml
~> ls -al /j/P*
-rw-r--r-- 1 dell ferg   6767 Mar  2 09:16 /j/PSTART.XML

This used not to happen; and on a exFAT filesystem, the uc/lc Mixed is
preserved even if filename is 8.3.

FYI

~> uname -sr  ; /usr/lib/csih/winProductName.exe
CYGWIN_NT-10.0-WOW 2.10.0(0.325/5/3)
Microsoft Windows 10 Professional, 64-bit (build 16299)
~> sed --version
sed (GNU sed) 4.4
Packaged by Cygwin (4.4-1)

Fergus

--
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

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2018-03-06 17:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-05  9:05 sed seems to force UC filename on Mixed 8.3 filenames on FAT32 Fergus Daly
2018-03-05 16:44 ` Michel LaBarre
2018-03-05 16:46   ` Corinna Vinschen
2018-03-05 17:13     ` Michel LaBarre
2018-03-05 17:16       ` Corinna Vinschen
2018-03-05 18:04         ` Michel LaBarre
2018-03-05 21:00           ` Corinna Vinschen
2018-03-06  3:20             ` Michel LaBarre
  -- strict thread matches above, loose matches on Subject: below --
2018-03-06 14:57 Fergus Daly
2018-03-06 17:58 ` Brian Inglis
2018-03-03  8:36 Fergus Daly
2018-03-03 18:14 ` Brian Inglis
2018-03-04 10:09   ` Corinna Vinschen
2018-03-04 16:14     ` Brian Inglis
2018-03-04 17:05       ` cyg Simple
2018-03-04 18:14         ` Brian Inglis
2018-03-02  9:41 Fergus Daly
2018-03-02 16:55 ` Brian Inglis
2018-03-02 17:50   ` Andrey Repin
2018-03-02  9:22 Fergus Daly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).