Plugins and Platforms

John M McIntosh johnmci at
Fri Nov 25 18:43:58 UTC 2005

On 25-Nov-05, at 3:47 AM, Bert Freudenberg wrote:

> Hi folks,
> when writing a plugin in Slang I encountered two problems wrt  
> platform specifics:
> 1) convert a squeak pathname to a platform pathname:
> 	* my plugin links to a library that expects a platform file path
> 	* must convert from Squeak path (char encoding etc.)
> 	* sqFilenameFromString() should do this
> 	* PROBLEM: this does not work in an external plugin
> 	* because it is just a macro pointing to some platform-code  
> function that would have to be linked to the external plugin
> 	* PROPOSAL: provide an ioFilenameFromString() function exported  
> from the VM
> 	* looked up by plugin via interpreterProxy->ioLoadFunctionFrom 
> ("ioFilenameFromString", "")
> 	* could trivially be implemented by using sqFilenameFromString macro?

This would be good, since the sqFilenameFromString is responsible (if  
in fact it does on all platforms) to translate from squeak file name  
to platform character set dependent encoding.

John M. McIntosh <johnmci at> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.

More information about the Vm-dev mailing list