[gdal-dev] RFC 30: Unicode Filenames - call for discussion
Tamas Szekeres
szekerest at gmail.com
Wed Sep 15 05:23:05 EDT 2010
Frank,
How do we know whether an unicode on an ansi string mapping should be
actually done in the bindings? With respect to the C# bindings the strings
are normally maintained as unicode in the C# side however the default
conversion option is "Charset.Ansi" in the interface causing the character
conversion is done automatically. When marshaling the stringlist values a
custom code in typemaps_csharp.i use
System.Runtime.InteropServices.Marshal.PtrToStringAnsi explicitly.
All of this mapping could also be set to unicode as well, however it's not
clear to me how to decide whether ansi or unicode mapping should actually be
done. Or do we intend to create 2 versions of each functions enumerated in
RFC 30? Recall to switch between the unicode and ansi versions of the
WinAPI functions (like CreatefileW or CreateFileA) are normally selected
'globally' by using a compiler flag.
Best regards,
Tamas
2010/9/15 Frank Warmerdam <warmerdam at pobox.com>
> Folks,
>
> A client has asked me to support unicode filenames on windows. To that end
> I have constructed an RFC for migration to treating all filesnames in the
> GDAL API as utf-8.
>
> http://trac.osgeo.org/gdal/wiki/rfc30_utf8_filenames
>
> I'd appreciate review and comment. If all is well I hope to call for a
> vote
> on this RFC late this week.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam>
> and watch the world go round - Rush | Geospatial Programmer for Rent
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100915/ec51581e/attachment.html
More information about the gdal-dev
mailing list