Case Sensitive device name assigns

4 posts / 0 new
Last post
LyleHaze
LyleHaze's picture
Offline
Last seen: 2 years 1 month ago
Joined: 2011-05-26 03:58
Case Sensitive device name assigns

I got a support request from a user this morning.
He installed the same code on two systems, and found that the aiss images only worked one one of them. After some investigation, it turns out that one was assigned tbimages: and the other was assigned TBImages:
So apparently my code only finds the one that uses the same case.

Considering that there are 256 possible ways to mix capitalization of TbImAgEs:, is there a better way to fix this than trying to guess the capitalization used?

Before this morning, I would not have even guessed that assigned names are case sensitive.

Thanks,
Lyle

thomas
thomas's picture
Offline
Last seen: 1 week 5 days ago
Joined: 2011-05-16 14:23
So apparently my code only

So apparently my code only finds the one that uses the same case.

Well, it is very difficult to make AmigaDOS case sensitive. How did you do it?

If you open a file called TBImages:new it is the same file as if you open tbimages:new.

However, if you make your own list of files and use strcmp to compare path names, then of course TBImages and tbimages are different.

LyleHaze
LyleHaze's picture
Offline
Last seen: 2 years 1 month ago
Joined: 2011-05-26 03:58
I knew I should have copied

I knew I should have copied my code with the original post.. It's been a busy morning here.

I _thought_ I had used Andys nice macros for substituting missing aiss images with text
on a per-gadget basis. But reading the code later I see the error of my ways..

I have completely separate routines for aiss and text based buttons, with a scan
of the assign list to choose which way to go.

Now changing strcmp to stricmp. Hanging head in shame..
Sorry to bother you. Thanks for the help.

That'll teach me to post questions before lunchtime!

Lyle

LyleHaze

gazelle
gazelle's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2011-04-13 12:52
Keep in mind that filenames

Keep in mind that filenames may be case sensitive depending on the filesystem used (eg SFS partitions may be formated with the CASESENSITIVE switch).

Log in or register to post comments