Re: utf8 bug ?



* Christian Borup <borup borup com> [2004-09-04 23:27]:
In fact I've taken Gtk2 out of the equation. The attached
script still crash.

The documentation for _utf8_on says

    Turns on the UTF-8 flag in STRING. The data in STRING is not
    checked for being well- formed UTF-8. Do not use unless you
    know that the STRING is well-formed UTF-8. Returns the
    previous state of the UTF-8 flag (so please don't treat the
    return value as indicating success or failure), or "undef" if
    STRING is not a string.

which means that a failure with your script is to be expected.

Maybe Gtk2 (Glib?) doesn't actually properly transcode the string
to UTF8, and merely turns the flag on for it?

Regards,
-- 
Aristotle
"If you can't laugh at yourself, you don't take life seriously enough."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]