Re: 0.34 Beta1 Windows builds

"Jon A. Cruz" <[email protected]>
Newsgroups gmane.comp.graphics.sodipodi
Message-ID <[email protected]>
Lauris Kaplinski wrote:

>We definitely want to use wide fileops whenever possible, otherwise we 
>cannot support multilingual filenames other than default locale.
>Do you think we can check for unicode support run-time, and choose
>between xyzA/xyzW methods then?
>  
>

Yes.

A simple run-time check of Win9x versus WinNT is not too hard. I've 
gotten some base testing of this done. The filename calls themselves are 
straightforward. The main next step is to track down all the file IO and 
ensure that the proper Win32 calls are used when needed.

It makes sections of code that make Win32 calls a little longer... 
however these should be minimized and encapsulated anyway. Also this 
will remove the need for unicows.dll, and thus simplify the build 
requirements for third parties.

Basically, by making a few things explicit in the code, we can make it 
easier for anyone using any tools to build Sodipodi and get proper 
non-ASCII support. (Good for Mingw users, cross-compiling people, maybe 
even Borland users, etc.).

I've been keeping in touch with the core "win32" glib guys on this. Once 
I get things solid and tested they have no problems with it even making 
it into the core glib/gtk+ sources. But if the code is in Sodipodi 
initially, then there will be no problems with making people wait for 
the next (2.4?) glib/gtk+ release.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.