[BUG] primPathNameDelimiter on Mac OS X varies by VM *and* Box

Jack Keel jhkeel at facstaff.wisc.edu
Wed Jan 21 00:11:27 UTC 2004


Not a bug in primPathNameDelimiter.

Was a bug in TLoad3DSMax

After talking with John and Ian it was clear that the VMs where 
processing as designed and it forced me to do a more thorough job of 
debugging.  The actual problem was a hardcoded comparison in 
TLoad3DSMax searching for \ and : but not /.  Still baffles me that it 
actually worked on Windows and Unix but not on Macintosh.  I modified 
the methods to use the pathNameDelimiter instead of the constant and 
now it works with both VMs on Macs.

A changeset is attached.

Jack


-------------- next part --------------
A non-text attachment was scrubbed...
Name: AvatarLoadFix.1.cs
Type: application/octet-stream
Size: 3315 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040120/91fba81d/AvatarLoadFix.1.obj
-------------- next part --------------

On Jan 17, 2004, at 1:07 PM, Jack Keel wrote:

> Fellow Squeakers,
>
> I'm having problems that seem related to an invalid path name 
> delimiter being returned by primPathNameDelimiter on several VMs.  I 
> did the following test on my G3 Panther box changing only the VM 
> between tests.
>
> Using Squeak 3.5.1Beta4.app, Squeak 3.7.1Beta1.app, Squeak 
> 3.2.8Beta9.app, Squeak 3.6.1Beta5.app  I get the following
>
> FileDirectory pathNameDelimiter        --->  $:
> FileDirectory primPathNameDelimiter ---> $:
> Smalltalk platformName.                        ---> 'Mac OS'
>
>
> Using Squeak-3.6g-2.app I get what I expected.
>
> FileDirectory pathNameDelimiter         ---> $/
> FileDirectory primPathNameDelimiter ---> $/
> Smalltalk platformName.                        ---> 'unix'
>
> Curiously, the Squeak-3.6g-2.app returns the $: on a G4 Jaguar laptop 
> (10.2.8 without the developer tools) and works okay on a G4 laptop 
> (10.2.6 with Developer) and works on a G4 laptop with Panther.  On yet 
> another old G4 tower with 10.2.8 it fails with a "does not understand" 
> (i.e. an entirely different error).
>
> So I have yet to find a VM that works consistently on all my OS X 
> platforms.  And since Squeak-3.6g-2.app doesn't have sound my 
> application is disabled even on the ones that know what the proper 
> delimiter is.
>
> Jack
>


More information about the Squeak-dev mailing list