OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: Jon_J on June 09, 2006, 06:23:38 pm

Title: Normal Linux Behavior?
Post by: Jon_J 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
Title: Normal Linux Behavior?
Post by: Mjolinor 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.
Title: Normal Linux Behavior?
Post by: Meanie 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.
Title: Normal Linux Behavior?
Post by: Jon_J 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 (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?
Title: Normal Linux Behavior?
Post by: pockie 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?
Title: Normal Linux Behavior?
Post by: the_oak 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 (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!