From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: default charset for text/html selection in X11 Date: Thu, 22 Jun 2023 14:14:13 +0200 Message-ID: <87a5wrg0dm.fsf@gmail.com> References: <87mt0sg6fc.fsf@gmail.com> <875y7g2u26.fsf@yahoo.com> <87pm5o182d.fsf@yahoo.com> <87ilbgeza0.fsf@gmail.com> <831qi34xmv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15182"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org, Lars Ingebrigtsen To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 22 14:15:21 2023 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 1qCJDc-0003jb-0M for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Jun 2023 14:15:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCJCf-0001xB-K4; Thu, 22 Jun 2023 08:14:21 -0400 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 1qCJCd-0001wl-Uh for emacs-devel@gnu.org; Thu, 22 Jun 2023 08:14:19 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCJCb-00043t-WB; Thu, 22 Jun 2023 08:14:19 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f9b4bf99c2so39902625e9.3; Thu, 22 Jun 2023 05:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687436055; x=1690028055; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=CjFUjqaf0ydaAHZqwXiBkc/OcP7s9F4wfhRln0cmLTg=; b=Srw1UBotMzqGYGJ6WCRMJXEDXiEy1XwnXlDDO22gt5Lu4/E47ICGU3jN392JSPhfYd 3KQO3y3jKEwoh8YHr4L5IC3NaTzfStBzElwBeoZQpkS69o1uhoI9wEwkfts8rf+EjV9n TjvaUEhoNI5pv15IG0Ht+4RyXl7lXZrAh/qi6gbvTOrcCw+YpQIxpHEoqKrhn2lf5cyy iW3Q22Y7VkwdjSvS3DsOMN1cWmW3Tk8oWAAiU82pXYUThfj5SlLv1nN+SXAUMsDGPhnm jeSmhZkkEWPiBX0Ixxwu+Eog+7U8UwDS9BdUlBAF4QCGeyto/4FZFl/J+pvW7FmedQX4 pTQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687436055; x=1690028055; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CjFUjqaf0ydaAHZqwXiBkc/OcP7s9F4wfhRln0cmLTg=; b=FK3Fz6ODgbbMo2B7T3PGNcXLpRN3HTSou84GWp7UDrPMPIv1oTWQNqioGXVIjtW7Wu tt1ZprnQySloAgL/7/Yqsv0cy61W6dIfSnOJWoRLJWAGeiah6tVYsWXipCWu2J5IikgU LKtZEtbOMWur4YQib+71KqlygLSY9cuvubio5SvASN/F9AHBjcmi3rZh60x5fitqZXBS /upSHKZHTLqm/Ax6oWPV+XLpy1wuiUnF9ihbTi+moGZ4E0Sw0XCxy0lBGKzMzaSXMIPs wDBMWBCWEbFT4wq4HMzb9TLTlUCGQfFXLto+xUzxQLzb3rgC6z2lgRGL7jXW2n6yIG35 8xSw== X-Gm-Message-State: AC+VfDxv4uKoeuvQwcGrN7NRGBh3OTWbpaeu//Y0CuX9OrzdLgizBPUT 2vljDsJnL/l7D/jP33XCun4= X-Google-Smtp-Source: ACHHUZ4E/advnC1h0P2iPSnPISBRvheC7KoBet2G6azkS+CedZz5dUt0h0VE8y3N4TdPueeu7U2yGw== X-Received: by 2002:a05:600c:b44:b0:3f9:6d10:eb0e with SMTP id k4-20020a05600c0b4400b003f96d10eb0emr8767393wmr.40.1687436055056; Thu, 22 Jun 2023 05:14:15 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id v15-20020a1cf70f000000b003f8d770e935sm18922538wmh.0.2023.06.22.05.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 05:14:14 -0700 (PDT) In-Reply-To: <831qi34xmv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 13:08:56 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:307131 Archived-At: >>>>> On Thu, 22 Jun 2023 13:08:56 +0300, Eli Zaretskii said: >> (get-text-property 0 'foreign-selection html) =3D> STRING >>=20 >> but it=CA=BCs definitely a utf-8 string, not iso-latin-1. Eli> Does that depend on the locale, per chance? Could you try changing Eli> the locale's codeset and looking at what Chromium produces then? LC_ALL=3DC chromium makes no difference, although LC_ALL=3DC firefox results in U+00A0 being transferred as U+0020, but something like U+2764 U+FE0F still gives me utf-8 constituent bytes: \xe2\x9d\xa4\xef\xb8\8f so I=CA=BCm thinking that using `gui-get-selection' is the right thing. Lar= s, can you shed any light on why yank-media uses `gui-backend-get-selection' rather than `gui-get-selection'? Robert --=20