Bug in #isCaseSensitive on a Mac?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in #isCaseSensitive on a Mac?

Juan Vuletich-4
Hi Folks,

FileDirectory activeDirectoryClass isCaseSensitive answers false on a
Mac. this is a bug, right?

Cheers,
Juan Vuletich

Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Edgar De Cleene



On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:

> Hi Folks,
>
> FileDirectory activeDirectoryClass isCaseSensitive answers false on a
> Mac. this is a bug, right?
>
> Cheers,
> Juan Vuletich


Mac OS X ~= Unix



Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Frank Shearar
Edgar J. De Cleene wrote:

>
>
> On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:
>
>> Hi Folks,
>>
>> FileDirectory activeDirectoryClass isCaseSensitive answers false on a
>> Mac. this is a bug, right?
>>
>> Cheers,
>> Juan Vuletich
>
>
> Mac OS X ~= Unix

OS X uses a case sensitive filesystem, so it sounds like a bug.

frank

Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Juan Vuletich-4
Frank Shearar wrote:

> Edgar J. De Cleene wrote:
>>
>>
>> On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:
>>
>>> Hi Folks,
>>>
>>> FileDirectory activeDirectoryClass isCaseSensitive answers false on a
>>> Mac. this is a bug, right?
>>>
>>> Cheers,
>>> Juan Vuletich
>>
>>
>> Mac OS X ~= Unix
>
> OS X uses a case sensitive filesystem, so it sounds like a bug.
>
> frank

I apologize. I shouldn't post before my second coffee. Let me restate:
    FileDirectory activeDirectoryClass isCaseSensitive
answers true on a Mac. This is a bug, right?

Thanks,
Juan Vuletich

Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Bert Freudenberg
On 16.03.2010, at 12:55, Juan Vuletich wrote:

>
> Frank Shearar wrote:
>> Edgar J. De Cleene wrote:
>>>
>>>
>>> On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:
>>>
>>>> Hi Folks,
>>>>
>>>> FileDirectory activeDirectoryClass isCaseSensitive answers false on a
>>>> Mac. this is a bug, right?
>>>>
>>>> Cheers,
>>>> Juan Vuletich
>>>
>>>
>>> Mac OS X ~= Unix
>>
>> OS X uses a case sensitive filesystem, so it sounds like a bug.
>>
>> frank
>
> I apologize. I shouldn't post before my second coffee. Let me restate:
>   FileDirectory activeDirectoryClass isCaseSensitive
> answers true on a Mac. This is a bug, right?

Yes. But only half a bug. Maybe a ¾ bug ;)

In HFS+ volumes, case-sensitivity is optional and off by default. So the default Mac Harddisk is not case-sensitive. And if you pop in a FAT-formatted USB drive it's not case-sensitive either.

However, the whole case-sensitivy issue in Squeak is much too coarse-grained anyway. You can mount a case-sensitive filesystem in Mac OS X, just like you can mount a case-insensitive filesystem in Linux. What we use is just a zero-order approximation. What would be needed is to support case-sensitivity on a per-volume base.

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Ken G. Brown
In reply to this post by Frank Shearar
At 1:26 PM +0200 3/16/10, Frank Shearar apparently wrote:

>Edgar J. De Cleene wrote:
>>
>>
>>On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:
>>
>>>Hi Folks,
>>>
>>>FileDirectory activeDirectoryClass isCaseSensitive answers false on a
>>>Mac. this is a bug, right?
>>>
>>>Cheers,
>>>Juan Vuletich
>>
>>
>>Mac OS X ~= Unix
>
>OS X uses a case sensitive filesystem, so it sounds like a bug.
>
>frank

Someone else may know the impact of this in Squeak, but when formatting hard drives on MacOS X, you get to choose whether you format case-sensitive or not.

So perhaps the particular false answer is indeed correct.
I don't have any drives formatted as case-sensitive but maybe someone could try to see if it answers true then.

Ken G. Brown

Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Randal L. Schwartz
In reply to this post by Frank Shearar
>>>>> "Frank" == Frank Shearar <[hidden email]> writes:

Frank> OS X uses a case sensitive filesystem, so it sounds like a bug.

By default, case preserving, but not case sensitive.

As said elsewhere in this thread, you can override the default,
but it can break things, so it is not done by default. :)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Juan Vuletich-4
In reply to this post by Bert Freudenberg
Bert Freudenberg wrote:

> On 16.03.2010, at 12:55, Juan Vuletich wrote:
>  
>> Frank Shearar wrote:
>>    
>>> Edgar J. De Cleene wrote:
>>>      
>>>> On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:
>>>>
>>>>        
>>>>> Hi Folks,
>>>>>
>>>>> FileDirectory activeDirectoryClass isCaseSensitive answers false on a
>>>>> Mac. this is a bug, right?
>>>>>
>>>>> Cheers,
>>>>> Juan Vuletich
>>>>>          
>>>> Mac OS X ~= Unix
>>>>        
>>> OS X uses a case sensitive filesystem, so it sounds like a bug.
>>>
>>> frank
>>>      
>> I apologize. I shouldn't post before my second coffee. Let me restate:
>>   FileDirectory activeDirectoryClass isCaseSensitive
>> answers true on a Mac. This is a bug, right?
>>    
>
> Yes. But only half a bug. Maybe a ¾ bug ;)
>
> In HFS+ volumes, case-sensitivity is optional and off by default. So the default Mac Harddisk is not case-sensitive. And if you pop in a FAT-formatted USB drive it's not case-sensitive either.
>
> However, the whole case-sensitivy issue in Squeak is much too coarse-grained anyway. You can mount a case-sensitive filesystem in Mac OS X, just like you can mount a case-insensitive filesystem in Linux. What we use is just a zero-order approximation. What would be needed is to support case-sensitivity on a per-volume base.
>
> - Bert -
>
>  

I see. Thank you Bert.

Cheers,
Juan Vuletich

Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

johnmci
In reply to this post by Bert Freudenberg
(a) someone should make a mantis report
(b) Mostly you ask if the FileDirectory instance is case sensitive, but in one place you ask if the FileDirectory activeDirectoryClass isCaseSensitive

Obviously you could work out if the file directory is on a volume which supports case sensitivity, then alter the code so you ask always ask the FileDirectory instance
which asks the VM?


On 2010-03-16, at 5:00 AM, Bert Freudenberg wrote:

> On 16.03.2010, at 12:55, Juan Vuletich wrote:
>>
>> Frank Shearar wrote:
>>> Edgar J. De Cleene wrote:
>>>>
>>>>
>>>> On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:
>>>>
>>>>> Hi Folks,
>>>>>
>>>>> FileDirectory activeDirectoryClass isCaseSensitive answers false on a
>>>>> Mac. this is a bug, right?
>>>>>
>>>>> Cheers,
>>>>> Juan Vuletich
>>>>
>>>>
>>>> Mac OS X ~= Unix
>>>
>>> OS X uses a case sensitive filesystem, so it sounds like a bug.
>>>
>>> frank
>>
>> I apologize. I shouldn't post before my second coffee. Let me restate:
>>  FileDirectory activeDirectoryClass isCaseSensitive
>> answers true on a Mac. This is a bug, right?
>
> Yes. But only half a bug. Maybe a ¾ bug ;)
>
> In HFS+ volumes, case-sensitivity is optional and off by default. So the default Mac Harddisk is not case-sensitive. And if you pop in a FAT-formatted USB drive it's not case-sensitive either.
>
> However, the whole case-sensitivy issue in Squeak is much too coarse-grained anyway. You can mount a case-sensitive filesystem in Mac OS X, just like you can mount a case-insensitive filesystem in Linux. What we use is just a zero-order approximation. What would be needed is to support case-sensitivity on a per-volume base.
>
> - Bert -
>
>
>

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Eliot Miranda-2
In reply to this post by Frank Shearar


On Tue, Mar 16, 2010 at 4:26 AM, Frank Shearar <[hidden email]> wrote:
Edgar J. De Cleene wrote:


On 3/16/10 8:36 AM, "Juan Vuletich" <[hidden email]> wrote:

Hi Folks,

FileDirectory activeDirectoryClass isCaseSensitive answers false on a
Mac. this is a bug, right?

Cheers,
Juan Vuletich


Mac OS X ~= Unix

OS X uses a case sensitive filesystem, so it sounds like a bug.

Not exactly.  By default Mac OS X installs with case insensitivity (at least in 10.4 Tiger).  But one can specify either case sensitivity (my preference, currently using it on Snow Leopard) or case insensitivity.  See Disk Utility. 

I looked in sys/attr.h and found VOL_CAP_FMT_CASE_SENSITIV & VOL_CAP_FMT_CASE_PRESERVING, but can't find the call that fils in these attributes in a vol_capabilities_attr_t, so I don't know how to retrieve the settings.

HTH


frank




Reply | Threaded
Open this post in threaded view
|

Re: Bug in #isCaseSensitive on a Mac?

Frank Shearar
In reply to this post by Randal L. Schwartz
Randal L. Schwartz wrote:
>>>>>> "Frank" == Frank Shearar <[hidden email]> writes:
>
> Frank> OS X uses a case sensitive filesystem, so it sounds like a bug.
>
> By default, case preserving, but not case sensitive.
>
> As said elsewhere in this thread, you can override the default,
> but it can break things, so it is not done by default. :)

Huh. Well, that's my new-datum-of-the-day then. I've only been working
with Macs for a few months (iPhone stuff), and everything certainly
LOOKED case sensitive, in things like the terminal. That plus "Mac =
FreeBSD + special kernel" made me jump to the semi-erroneous conclusion
I did!

So once again I'm happy to be wrong, because I learned something new!

frank