From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53916: 29.0.50; pgtk: Gtk-WARNING with popup menu Date: Fri, 11 Feb 2022 09:59:41 +0200 Message-ID: <83zgmxsuj6.fsf@gnu.org> References: <87k0e357ds.fsf@gmx.net> <87iltmyl6d.fsf@yahoo.com> <87ee4a7ujw.fsf@gnus.org> <8735kqyitc.fsf@yahoo.com> <871r097wmd.fsf@gnus.org> <87iltlvs3c.fsf@yahoo.com> <87ee49vrzm.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, stephen.berman@gmx.net, 53916@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 11 09:00:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIQqm-0008dR-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 09:00:16 +0100 Original-Received: from localhost ([::1]:45460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIQql-0003cx-Rl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Feb 2022 03:00:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIQqZ-0003bs-Ip for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 03:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIQqZ-0002zN-62 for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 03:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIQqY-0000jB-S3 for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2022 03:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Feb 2022 08:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53916 X-GNU-PR-Package: emacs Original-Received: via spool by 53916-submit@debbugs.gnu.org id=B53916.16445663962754 (code B ref 53916); Fri, 11 Feb 2022 08:00:02 +0000 Original-Received: (at 53916) by debbugs.gnu.org; 11 Feb 2022 07:59:56 +0000 Original-Received: from localhost ([127.0.0.1]:58152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIQqR-0000iL-RH for submit@debbugs.gnu.org; Fri, 11 Feb 2022 02:59:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIQqP-0000i5-FH for 53916@debbugs.gnu.org; Fri, 11 Feb 2022 02:59:53 -0500 Original-Received: from [2001:470:142:3::e] (port=46854 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIQqK-0002x6-26; Fri, 11 Feb 2022 02:59:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jX9yc1qfawm/ahy/vOgMmQa5hF3DFx0C00OXF2u59uA=; b=P5jxjxOcaEOO jmSVXRNhOBCIOJkbzQc4iv1grPKsMG/YGmX76OtlP7+ruEAqPTwR4VXJWpykzKhzw5Ka1H8j57lxa 8lmmdtmkxutnPOofyGooEYwkNH0ELNkxDiNbFuUAVV7G6g1jVpzNz6hzGCqf2jIEGHUqVBnvnbVjL qjQQSzTbsSvqY6H8fCQpLnfojO1V6Hz3A/AIEcxeiJvOYNgRUhsYRaxUsJs3ozuWW0lQP4mNF6aIw br3V2LTRJmT8LG2UYi50fSuPA6RxQtjWvenip5iCwfytwVfZGr1J2k2xkks970fujAlHLEM4flYTY vvxgZUOt3gl0HJWO3NSrWw==; Original-Received: from [87.69.77.57] (port=1959 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIQqH-00032B-22; Fri, 11 Feb 2022 02:59:46 -0500 In-Reply-To: <87ee49vrzm.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226649 Archived-At: > Cc: Stephen Berman , 53916@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" > > Po Lu 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.