GNU bug report logs -
#53916
29.0.50; pgtk: Gtk-WARNING with popup menu
Previous Next
Full log
View this message in rfc822 format
> Cc: Stephen Berman <stephen.berman <at> gmx.net>, 53916 <at> debbugs.gnu.org
> Date: Fri, 11 Feb 2022 14:26:21 +0800
> From: Po Lu via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Po Lu <luangruo <at> yahoo.com> writes:
>
> > Great, does anyone know what "%s" parameters to `add_to_log' are
> > expected in? UTF-8?
>
> About 5 seconds after sending this, I realized that it accepts Lisp
> objects and format control strings like `format'.
Yes, the arguments are Lisp strings.
> So hopefully that means it will be okay to print out unibyte strings via
> that mechanism, since I don't want to go down the rabbit hole of what
> text encodings various libraries using the GLib logging system subject
> it to.
Just use DECODE_SYSTEM, the encoding is already figured out for you.
Please do NOT use the original unibyte strings, they are likely to
display as gibberish in some cases.
This bug report was last modified 3 years and 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.