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 09:23:19 +0200 Message-ID: <87ilbgeza0.fsf@gmail.com> References: <87mt0sg6fc.fsf@gmail.com> <875y7g2u26.fsf@yahoo.com> <87pm5o182d.fsf@yahoo.com> 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="24949"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 22 09:24:12 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 1qCEfr-0006Mz-Uo for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Jun 2023 09:24:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCEfA-0001Z9-6e; Thu, 22 Jun 2023 03:23:28 -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 1qCEf8-0001Yp-K3 for emacs-devel@gnu.org; Thu, 22 Jun 2023 03:23:26 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCEf6-0000Jn-4E for emacs-devel@gnu.org; Thu, 22 Jun 2023 03:23:26 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f90b8acefdso44520975e9.1 for ; Thu, 22 Jun 2023 00:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687418601; x=1690010601; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=JSXYZLeGIK+WRi9Jhkg2OJYvkj5fEW40fVJ1NHGJRGw=; b=m1Njg48o8KsvwFflsP70ljokRag7k00Ao5+yCxzQW9a9x8HuWYqYpBDnsEN7YkrPyA yZrvLyrFv9cyQG3/BeCEbw6CY5R0eRK/PWcBUrx1H3yRgfeKm3ShwO3MT8hvdLkwLnv3 MhJc+ru/4vkjpUDIpV8hYidKsNCPpv1HY/+cwHG30dUnqpMWFivwzPCHmhwOSEag1jzI 64GAfH7v9gaGRx5ZBnYaBuwnxhFPBXhNFIhy7kfwIkt9vaCf07OVyGu2YsxquN2MUTHg kPa9N4u+JbkI29nJOyp03OA72XkP+gofGf4yyBR0kFdPmOj5iVO+finyoK6p+xuzEbLA NXow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687418601; x=1690010601; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JSXYZLeGIK+WRi9Jhkg2OJYvkj5fEW40fVJ1NHGJRGw=; b=jxQhXwUa2wR8Nv6YxyEvNIyyQw3kxAdXorOmI+ZlQmGii3ZS+6b6VpGqg3cNimBcB7 CnqgRh7qtbyIgne79k4QavnO7Sk8Ni0NieE5kPW9mDG0z7y/HxL9Gezmpuel2ZdO6+Mj 0VwFf/uV17ROkN2zFBd/hMHBTqB0lqq9evTDRzLvTRH/M+wha+UMDR7INpNz2ENOthri YofcxL+3nvdfTI4uACDHNMfyJw5uvb5HDrkf/YTtMe8ukPwSh0JxKJK+/Vimm+Qiq5Y8 Ny8VOGQblPewyhNvUfI6GJv7h+WhhfYWAu/RbM77O4tKYh/7GV+zTPXr2xZFPhIQygcC RgDg== X-Gm-Message-State: AC+VfDwmU43UCdyqvkkSbk3Uwwy2heGKU6w8yCM/rlbKP601mA2rjVCi ZmRQAD4b25bDTTH+98X/3kQD5LQ8bD0= X-Google-Smtp-Source: ACHHUZ53ll7kRCKibaHMczn6gPlUXqsiC/5bB/brT8Q80cqgCZJYAPjHMP+Qbh+JZsOVA1ig9D4AKQ== X-Received: by 2002:a7b:c3d2:0:b0:3f7:a552:2ec7 with SMTP id t18-20020a7bc3d2000000b003f7a5522ec7mr12397556wmj.33.1687418601288; Thu, 22 Jun 2023 00:23:21 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id z8-20020a05600c220800b003f9b12b1598sm9923216wml.22.2023.06.22.00.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 00:23:20 -0700 (PDT) In-Reply-To: <87pm5o182d.fsf@yahoo.com> (Po Lu's message of "Thu, 22 Jun 2023 11:37:14 +0800") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=rpluim@gmail.com; helo=mail-wm1-x331.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:307122 Archived-At: >>>>> On Thu, 22 Jun 2023 11:37:14 +0800, Po Lu said: Po Lu> Po Lu writes: >> What is the type of the string? IOW, what's >>=20 >> (get-text-property html 'foreign-selection) Po Lu> (get-text-property 0 html 'foreign-selection), of course. Sorry= about Po Lu> the confusion. (get-text-property 0 'foreign-selection html) =3D> STRING but it=CA=BCs definitely a utf-8 string, not iso-latin-1. >> ? >>=20 >> This should be one of the usual X11 string formats: STRING >> (iso-latin-1), COMPOUND_TEXT (compound-text-with-extensions), or >> UTF8_STRING (utf-8). Po Lu> Oh, and C_STRING, which is ASCII. Robert --=20