On 7/24/07, Lars Clausen <[EMAIL PROTECTED]> wrote:
On Sat, 2007-06-30 at 11:09 -0500, Patrick Hallinan wrote:
I pull the filename from the filepath by searching for > G_DIR_SEPARATOR_S. If I find the separator I increment the pointer by > 1 to point to the beginning of the filename. I just wonder if this is > portable with character encodings like UTF8 and such. It is; UTF-8 guarantees that you don't find G_DIR_SEPARATOR as part of a multi-byte character.
Thanks for the info! I've changed my local copy to use the diagram_get_name() (or something like that) which I found when I was hacking on the exit code. I'll send that and some cleanup for the exit stuff soon.
_______________________________________________ Dia-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
