Re: g_io_channel_read_chars() loop

> From: Joel Becker <jlbec evilplan org>
> > When you say you're using the system encoding, what do you mean?
> > If you mean that you're not setting it, the default is always
> > UTF-8. If you mean you're setting it to some particular
> > system encoding using g_io_channel_set_encoding (), which
> > encoding is it?
>     ANSI_X3.4-1968 in this particular case.  My code is basically doing:
> if (no encoding specified) { set_encoding(g_get_charset()) }
> this is based on the assumption that g_get_charset() provides the
> encoding that a subprocess is going to use in the current environment.
> It has worked just fine up until this particular CVS update.
> 	Now that you mention it, I am not sure that I tried this with
> any other encoding.  It should not have been a problem.  But one must
> cover all bases.  The input in these cases looks similar to
> "connection_type\nethernet\n", which is very valid ANSI_X3.4-1968.

The reason I asked is that the (default) UTF-8 encoding uses
different parts of the code than other, non-UTF-8 encodings.


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