To All bah/cegui.mod users ! Potential crash bug

BlitzMax Forums/Brucey's Modules/To All bah/cegui.mod users ! Potential crash bug

Armitage 1982(Posted 2012) [#1]
Hi

If you are using the Brucey cegui.mod there is a potential C++ runtime crash while using Appdir(), absolute path or special file name with resources manager!

Apparently the version 0.6.2 I'm using in this module does not support unicode characters. If one non-English characters (like a simple é or è) is present in any path or image name you throw at cegui, it will crash saying it cannot load the file.

For unneeded reasons I was using Appdir() to load file in an absolute manner. After using the users folder to store my game files, users called Séverine, report that crash :)
Also think about foreign users like Japanese or Russian naturally using different characters everywhere.

Now I'm always loading files in a relative manner and that fix it.
I know it may sounds basics and obvious but I learn it in a bitter way :)

I also think branch O.7 of CEgui are unicode safe now.