From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Coding systems in emacsclient (or, apostrophe's woes...) Date: Sat, 19 Nov 2022 20:13:25 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000faf8b805edd79feb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30871"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 19 20:14:59 2022 Return-path: Envelope-to: ged-emacs-devel@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 1owTIn-0007tX-NO for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Nov 2022 20:14:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owTI2-0000zU-66; Sat, 19 Nov 2022 14:14:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owTI0-0000zI-NS for emacs-devel@gnu.org; Sat, 19 Nov 2022 14:14:08 -0500 Original-Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owTHv-00031q-Ab for emacs-devel@gnu.org; Sat, 19 Nov 2022 14:14:08 -0500 Original-Received: by mail-ed1-x52b.google.com with SMTP id f7so11311362edc.6 for ; Sat, 19 Nov 2022 11:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Hiw+2Piq5dtF4g5ITPzxo43EsgTgFWq6wdqe/oSaFKU=; b=ETbYzNtpZJHLxGR5/18fFqZBRhwDu8xb3+q8lb8caQZeOF8s4v5vaFFKZ4UIEgWnXV dL88vFkGg60rxerWt7xzjFGlyqti/L4PMWOjXnoNySwRJJd3YP5VBTilMPZwQs0XJ2vB 2S5JsH34FprAFyy5HlR0awfDxycYbVocCkzC/Q9l7XkWWuuL9v/34JxP/FoUmGY6XwoI taQ70ajcbPtXk21vg2xw1U2+FBjrc28R/HtyLopgyH2K5XFXiKXSOaZWGXQ0N0RoJEie Ut9JC65MCXmDXJWxQij6SP8kiypcLx98pSueMTX+D9V9kORfv1bQpgAnVsbm8hkxg1Mb SB+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Hiw+2Piq5dtF4g5ITPzxo43EsgTgFWq6wdqe/oSaFKU=; b=qu4hkysK9W5K5MMZqcgI3tEOtEnuwkb0J/dGu3rRDEZLYuHZeKEzMk/qEmzwg3F/t1 tNoDr+QYWPKdd16HLZd7aVnQAMblsQExg+lEM/EWFzf0n3pFfBqmHk7sWLt08oI/CM33 0gytNy2elxzW5GCIleRCW28tIS7ZK7qWFibVG0mGlYyzTR24wVppRYmPVTqA8Nsy3Y0u v1HNkRJDGyXGJWnkBAFEma81ToVQEKF3b9U6rfpTs7k0yz3NyNH8hwDnvCuarI1QSf+t gRZ/kHZQTKFkuEBInKpKjhQpivOCYDEbnI55iEWa1Oirn1fKknGHWv9/4VVIrhqGSrxs iNGQ== X-Gm-Message-State: ANoB5pkyVyoryi0q2V71OrwkacO0KZ0u8vSfezl58tDi3A7tYLkDLbII ICavE6pbTETDE75z7DLDH5iA1Lee+195bX9w25qEGIhFMhs= X-Google-Smtp-Source: AA0mqf5NcuddEsDEvFO7LEHTLnCs1fN3qIBYyrB+IZXGBuXihCZGxH83fvtvvUd5l8NQOyJxyXYX+rlO7eE35k9IY4I= X-Received: by 2002:a05:6402:f01:b0:459:9dd3:2217 with SMTP id i1-20020a0564020f0100b004599dd32217mr1754126eda.163.1668885241328; Sat, 19 Nov 2022 11:14:01 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=lekktu@gmail.com; helo=mail-ed1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300198 Archived-At: --000000000000faf8b805edd79feb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable C:\> emacsclient --server-file=3Dwhatever --eval "(nonexistent)" *ERROR*: Symbol=C3=A2=E2=82=AC=E2=84=A2s function definition is VOID: nonex= istent That's obviously UTF-8; if I change my console's codepage to 65001 *ERROR*: Symbol=E2=80=99s function definition is VOID: nonexistent But that's not what puzzles me. What I don't understand is how that message is defined in data.c using an APOSTROPE (#x27), but emacsclient is receiving a RIGHT SINGLE QUOTATION MARK (#x2019). Where is that change happening? As an aside, perhaps it would be nice to have a way (a -coding command or whatever) for emacsclient to tell server.el its output coding system... --000000000000faf8b805edd79feb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

C:\> emacsclient --server-file=3Dwhatever --eval "(non= existent)"
*ERROR*: Symbol=C3=A2=E2=82=AC=E2=84=A2s function defini= tion is VOID: nonexistent

That's obviously UTF-8; if I change my= console's codepage to 65001

*ERROR*: Symbol=E2=80=99s function defini= tion is VOID: nonexistent

But that's not what puzzles me. What I= don't understand is how that message is defined in data.c using an APO= STROPE=C2=A0(#x27), but emacsclient=C2=A0is receiving a RIGHT SINGLE QUOTAT= ION MARK (#x2019).

Where is that change happening?

As an asid= e, perhaps it would be nice to have a way (a -coding command or whatever) f= or emacsclient to tell server.el its output coding system...

<= /div> --000000000000faf8b805edd79feb--