John Darrington <[email protected]> writes: > On Sun, Sep 26, 2010 at 12:50:15PM -0700, Ben Pfaff wrote: > > > > Also, the Gtk/Glib functions use plain char for UTF8 strings, > > > > Actually, that's not literally true. The functions are declared to > > take gchar *. Glib then typedefs gchar to char. Perhaps with some > > devious hack we could make gchar into something else, but I'm not > > too sure how wise it would be to do that. > > I think it would be a bad idea. > > We seem somewhat stuck then. > > Another idea would be to create some inline wrapper functions > around gnulibs u8_ functions. This might not be too hard, > since the headers are generated from a .in file.
I'm not opposed to doing that kind of thing. It's too bad, though, that this would cause us to conflate UTF-8 and locale strings. We could use "sparse" annotations to distinguish them, I guess. That wouldn't be too bad, although we'd only get the warnings if we used that additional tool. -- Ben Pfaff http://benpfaff.org _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
