Re: Quotation marks: Using =?UTF-8?Q?=E2=80=9C=E2=80=9D?= instead of ""



On Mon, 2008-06-16 at 19:51 +0100, Alan Cox wrote:
> > All of that means that there are no run-time problems.
> > The only actual concern is whether compilers will choke
> > on UTF-8 source files.  Alan says that, according to the
> > standard, a compiler would be perfectly right to choke.
> > I believe him.  I also don't care.
> 
> I don't think that one is a show stopper because if you can guarantee the
> rest will not break C provides you with \ escapes so you can paste the
> string in that way. So the question is the one about feeding utf-8 to
> glibc functions and internal cleanness of gtk/glib (eg what C library
> dependancies does it have). Having to use \ escapes for the quotes is a
> trivial inconvenience.

Well, as I said, in this case:

gtk_label_new(_(some_string));

The output of gettext can (and often will) be UTF-8,
so gtk_label_new is going to receive UTF-8 whether
some_string is ASCII or not.  If it's not UTF-8-safe,
we're pretty much screwed already.

--
Shaun




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