Author Topic: Normal Linux Behavior?  (Read 5086 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Normal Linux Behavior?
« on: June 09, 2006, 06:23:38 pm »
Over the past several months, I've noticed that when I copy a file or directory from my windows machine to my Zaurus, the "case" gets changed.
This only happens to a file or folder which is named with all UPPERCASE characters.

My folder, "GPS" becomes "gps"
When I look at this folder while connected thru USB, in windows, it is "GPS"
When I look at it in file browser on my Zaurus, and/or Tree!Explorer, it is "gps"

This wasn't a problem to me until I copied some htm/html files, (complete with folder of images), to my Zaurus from my windows desktop.
I was puzzled why some of the images wouldn't appear in Netfront or Picsel Browser, when I opened these offline pages.
I found an example today, what was causing this problem.
I have a htm "manual" for my GPS card and there is one image in the image folder that is all UPPERCASE.
It became lowercase when copied to my Zaurus.
I tried to rename this file in Tree!Explorer, but I couldn't rename it because of this error:
"QDir::rename()"
All permissions were available for this file, but it still wouldn't let me rename it back to all CAPS.
So I opened a copy of the "htm" file in a text editor on my desktop. (I don't have a htm/html editor).
I changed this line from:
<p align="center"><img src="Manual_files/CF-GPS.gif
to
<p align="center"><img src="Manual_files/cf-gps.gif
I saved the file and copied it over the one on my Zaurus, and now this image shows in Netfront and Picsel Browser, just like it is supposed to.

What causes this behavior?
anything named in all CAPS becomes all lowercase when copied to my Zaurus.
I use Cacko Lite with no modifications.
Thank you for reading this long post,
Jon
« Last Edit: June 09, 2006, 10:40:22 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Normal Linux Behavior?
« Reply #1 on: June 10, 2006, 02:22:08 am »
I think the problem is not with Linux but Windo$e. There is no discrimination between upper and lower case file names on Windo$e so it isn't a problem . Linux has no way of knowing if the letters are upper and lower case in the file names.

It gets more difficult when you copy them from Linux to Windo$e and you have both upper and lower case files with the same name in the same directory.
« Last Edit: June 10, 2006, 02:25:14 am by Mjolinor »

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Normal Linux Behavior?
« Reply #2 on: June 10, 2006, 09:00:25 am »
Quote
I think the problem is not with Linux but Windo$e. There is no discrimination between upper and lower case file names on Windo$e so it isn't a problem . Linux has no way of knowing if the letters are upper and lower case in the file names.

It gets more difficult when you copy them from Linux to Windo$e and you have both upper and lower case files with the same name in the same directory.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130631\"][{POST_SNAPBACK}][/a][/div]

that's definitively window's fault. if a file or folder has mixed upper and lower case letters, then the case is preserved when copied but if they are all uppercase, then they are turned into all lower case. there is a registry setting to disable this feature so the filenames remain all uppercase. search annoyances.org for the setting.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Normal Linux Behavior?
« Reply #3 on: June 10, 2006, 01:47:55 pm »
I searched annoyances.org for this and here is the result.
There are other results under the XP forum, but they all pertain to this particular subject.
http://www.annoyances.org/exec/show/article02-101
I'll quote the first part of it:
----------------------------------------------------------------------------------------------
By default, Explorer displays uppercase (all caps) 8.3 DOS-style filenames (such as "README.TXT") in a "prettier" format (such as "Readme.txt).
If the filename has more than eight letters (not including the extension), or if the filename contains at least one space, the capitalization is not modified.
(Note: Windows doesn't actually change the capitalization of any files, only the way they're displayed in Explorer.)
----------------------------------------------------------------------------------------------
Look at the last sentence,
(Note: Windows doesn't actually change the capitalization of any files, only the way they're displayed in Explorer.)

There is a registry setting for this, but it only effects how windows explorer, desktop folders, and windows program's file dialogs, display uppercase filenames and foldernames.
It doesn't actually change the uppercase to lowercase, it just changes the way it looks in windows.

So what is actually changing my all caps folders/files to all lowercase when I transfer files from my windows box to my Zaurus?
« Last Edit: June 10, 2006, 01:50:51 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

pockie

  • Newbie
  • *
  • Posts: 2
    • View Profile
Normal Linux Behavior?
« Reply #4 on: June 02, 2008, 04:18:36 pm »
Was a solution to this issue ever found? When I copy files from my Linux system to my FAT32 formatted USB drive, it makes some of the directory names lowercase. This is causing problems and it sounds like the original issue in this thread was the same problem.

Was there a resolution?

the_oak

  • Sr. Member
  • ****
  • Posts: 426
    • View Profile
    • http://
Normal Linux Behavior?
« Reply #5 on: June 04, 2008, 08:32:42 am »
Quote from: Jon_J
I searched annoyances.org for this and here is the result.
There are other results under the XP forum, but they all pertain to this particular subject.
http://www.annoyances.org/exec/show/article02-101
I'll quote the first part of it:
----------------------------------------------------------------------------------------------
By default, Explorer displays uppercase (all caps) 8.3 DOS-style filenames (such as "README.TXT") in a "prettier" format (such as "Readme.txt).
If the filename has more than eight letters (not including the extension), or if the filename contains at least one space, the capitalization is not modified.
(Note: Windows doesn't actually change the capitalization of any files, only the way they're displayed in Explorer.)
----------------------------------------------------------------------------------------------
Look at the last sentence,
(Note: Windows doesn't actually change the capitalization of any files, only the way they're displayed in Explorer.)

I think they are lying!
SL-6000L running Sharp 1.12 rom, (SOLD)
Fujitsu U820 with Windows 7
White Intel MacBook