Author Topic: Closed: Case of non-graphics filenames  (Read 8237 times)

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Closed: Case of non-graphics filenames
« on: May 31, 2009, 09:15:32 AM »
PM apparently changes the case of non-graphics files to all lower case (e.g., 20090506_19020304_D3.html becomes 20090506_19020304_d3.html). For graphics files this alteration of the case of the base name is not performed. This is problematic as this wreaks havoc on case sensitive file systems.

The case change is visible in the contact sheet, but worse, is also applied when e.g., renaming files.

Why is this done, and could this please be fixed?
« Last Edit: May 07, 2019, 12:19:54 AM by Hayo Baan »
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Case of non-graphics filenames
« Reply #1 on: May 31, 2009, 12:25:55 PM »
PM apparently changes the case of non-graphics files to all lower case (e.g., 20090506_19020304_D3.html becomes 20090506_19020304_d3.html). For graphics files this alteration of the case of the base name is not performed. This is problematic as this wreaks havoc on case sensitive file systems.

The case change is visible in the contact sheet, but worse, is also applied when e.g., renaming files.

Why is this done, and could this please be fixed?

What part of the application is doing this?

-Kirk

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Case of non-graphics filenames
« Reply #2 on: May 31, 2009, 01:22:58 PM »
Well, it seems to happen everywhere.

As I said, you can already see it happen in the contact sheet; .html files get the lower case D3.
Also when you use the batch rename dialogue, the list of files shows the resulting file with lower case base names.

Note: I have set the preference for the suffixes to lower case. Perhaps this option is spilling over?
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Case of non-graphics filenames
« Reply #3 on: May 31, 2009, 04:32:52 PM »
Hayo,

Well, it seems to happen everywhere.

As I said, you can already see it happen in the contact sheet; .html files get the lower case D3.
Also when you use the batch rename dialogue, the list of files shows the resulting file with lower case base names.

Note: I have set the preference for the suffixes to lower case. Perhaps this option is spilling over?

I'm not seeing this when I test.  I used a filename "A_Kirk_X.TXT" and I set the filename extension case to lower.  Then I did a rename with {date}_{filenamebase} in the Rename dialog.  The previewed name was:

6-4-07_A_Kirk_X.txt

When I executed the rename I got the expected result.  How do I reproduce your issue?

-Kirk

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Case of non-graphics filenames
« Reply #4 on: June 01, 2009, 12:32:48 AM »
Kirk, this is really weird. There can't be much difference in what the system is doing, now can there. Oh, the only thing I can think of now is that I'm on Leopard 10.5.7 and IIRC you're using Tiger 10.4.x mostly. Could that be it?

Anyway, to show you what I'm getting, I've taken some screenshots.

First of a terminal window where you can see the file names as they should be. The other captures show you part of the contact sheet as well as the rename dialogue.

Hope we get to the bottom of this one  :D

[attachment deleted by admin]
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Case of non-graphics filenames
« Reply #5 on: June 15, 2009, 06:31:19 AM »
Kirk, any news on this one?
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Case of non-graphics filenames
« Reply #6 on: June 15, 2009, 06:44:42 AM »
Hayo,

Kirk, any news on this one?

Like I said earlier, I cannot reproduce the issue.  If you can help me reproduce it, I'd be happy to fix the problem.  Perhaps sending me your files as a Zip archive will help?  Please click on my name to the left of this message, then click on the 'personal message' link.  I will respond with upload instructions.

-Kirk

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Case of non-graphics filenames
« Reply #7 on: June 15, 2009, 11:46:20 AM »
Kirk,

I don't think there's any sense in mailing you files to help you reproduce it; for me it happens to ALL (non graphics) files, even if I simply create one on the command-line. E.g., even a file created using touch ~/Desktop/aaaTTT shows up as aaattt in the contact sheet.

I still reckon this is an issue with Tiger vs. Leopard. Have you tried to reproduce this on a Leopard 10.5.7 system already? Oh, and what file system are you running on, perhaps this has anything to do with it? Mine are all Mac OS Extended (Journaled), non case sensitive (the problem exists on FAT32 volumes as well though, I just tested this on an external disk).

Thanks
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Case of non-graphics filenames
« Reply #8 on: June 15, 2009, 09:16:05 PM »
Hayo,

I don't think there's any sense in mailing you files to help you reproduce it; for me it happens to ALL (non graphics) files, even if I simply create one on the command-line. E.g., even a file created using touch ~/Desktop/aaaTTT shows up as aaattt in the contact sheet.

I still reckon this is an issue with Tiger vs. Leopard. Have you tried to reproduce this on a Leopard 10.5.7 system already? Oh, and what file system are you running on, perhaps this has anything to do with it? Mine are all Mac OS Extended (Journaled), non case sensitive (the problem exists on FAT32 volumes as well though, I just tested this on an external disk).

Thanks

Found it and fixed it.  Would you like to test to verify?

-Kirk

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Case of non-graphics filenames
« Reply #9 on: June 16, 2009, 03:49:36 AM »
Found it and fixed it.  Would you like to test to verify?

Excellent! Was it a Tiger/Leopard thing or something completely different?

Oh, and sure I'm willing to test the fix  :D

Cheers
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Case of non-graphics filenames
« Reply #10 on: June 16, 2009, 06:23:09 AM »
Hayo,

Found it and fixed it.  Would you like to test to verify?

Excellent! Was it a Tiger/Leopard thing or something completely different?

I never could reproduce it myself.  But one of out Q/A guys could so I identified what I believed was causing the problem, made the change, and he tried it and found that the problem was solved.

-Kirk

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Case of non-graphics filenames
« Reply #11 on: June 16, 2009, 08:14:22 AM »
Indeed, the test version Kirk sent me fixes the problem!

Thanks 8)
Hayo Baan - Photography
Web: www.hayobaan.nl