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:27:29 +0200 Message-ID: <875y7ffzri.fsf@gmail.com> References: <87mt0sg6fc.fsf@gmail.com> <875y7g2u26.fsf@yahoo.com> <87pm5o182d.fsf@yahoo.com> <87ilbgeza0.fsf@gmail.com> <878rcc0vzs.fsf@yahoo.com> <87edm3g90e.fsf@gmail.com> <87v8ffzpi9.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="1718"; 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 14:28:06 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 1qCJPx-00009U-Ug for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Jun 2023 14:28:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCJPe-0005Bt-29; Thu, 22 Jun 2023 08:27:46 -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 1qCJPS-00057h-MK for emacs-devel@gnu.org; Thu, 22 Jun 2023 08:27:40 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCJPQ-0003bW-Uk for emacs-devel@gnu.org; Thu, 22 Jun 2023 08:27:34 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f90a7325f6so60317455e9.3 for ; Thu, 22 Jun 2023 05:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687436851; x=1690028851; 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=MF6uEMQS9SAFWo+p3vSDYv42+/ls3Ug/4On3oP2g+Pg=; b=sy1y7vR6xxoFke95yCW1yoYNg0SG+Ukb5FqrgXwBUnlCgl7B+s6h5zupGuxRDE3ry/ zVfTSeTFSA09746uTKd8wVZlxlRkxFSDRjt0Kuazbxj3XeaGVdrCtDKSkQXxlsIG0Goh kUIiz846hNxuWm/9LG7HLX0BNpntH4IEr+VekB/NtPqDeWjQoUhjZxwG8zvagH9I/vjO pFYprJJq3qvkR/JyxcPFqJYlNmXmc+gdMe2u2p0EhodLu+Wg1Rdg/RS6c++yrhD4Vizs UsQ7lHdPHjTECqqkGYL0Wx7M3GJB8qgElo46QF4Vb0EL98u11IgNqZbSop/QT9iCAw5+ jGbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687436851; x=1690028851; 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=MF6uEMQS9SAFWo+p3vSDYv42+/ls3Ug/4On3oP2g+Pg=; b=jCm6rlrBGT1KNgsWAHoqMHurMFglYoTWRtbORoTQs73bvQ7muGTiOSrt69AM15pmSI wi13suRLhpTZr8XI5GpRA+KtCV4ewKb+3lnCu9cFiSdTbtcXebqbJzQWkikWbIO6x40h cCTYBfzkPPJiVmfu3bA18p1zt3dLyUWKZH3LwHE4etob5J4UimqrySODy+Xaa0ttY242 LSN6rX1wm66X872jrcnLMdyspmFDQkhZmTmwiGb0ae0+vB+UStRGtmtc9zkjcFojcs7p W287rA45VSg+j6NNWgLcYtT7RR7RrkYCf86c9WB68NL7FVVQNUkC1KVufzIEoCrQjgza dyCw== X-Gm-Message-State: AC+VfDzAGjw0RN0HIN/PimCts7swYX6b3H311RHvfIkmSp1Lc8NrDIWs aM4KcXoCijc8WHKOEP9+SvJpFYoZcx0= X-Google-Smtp-Source: ACHHUZ4gIs7akav6jFiuNmDTmXk7PMwmu9X8qN+o8IjpByRQ9VNXBmz58k6xtfdtShECr4J1VTL5ZQ== X-Received: by 2002:a7b:c017:0:b0:3f6:2ae:230e with SMTP id c23-20020a7bc017000000b003f602ae230emr17627254wmb.3.1687436850884; Thu, 22 Jun 2023 05:27:30 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id p25-20020a1c7419000000b003f8fac0ad4bsm7522152wmc.17.2023.06.22.05.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 05:27:30 -0700 (PDT) In-Reply-To: <87v8ffzpi9.fsf@yahoo.com> (Po Lu's message of "Thu, 22 Jun 2023 19:48:46 +0800") Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32d.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:307133 Archived-At: >>>>> On Thu, 22 Jun 2023 19:48:46 +0800, Po Lu said: Po Lu> Robert Pluim writes: >> It does. Po Lu> Thanks. The bug lies in Chromium, not Emacs. And I=CA=BCm not the first to notice: https://bugs.chromium.org/p/chromium/issues/detail?id=3D760613&q=3Dcomponen= t%3ABlink%3EDataTransfer%20utf8&can=3D2 (although their proposed solution looks wrong) >> I took a closer look, and `yank-media' does the wrong thing, but >> `(yank-media-types t)' and selecting "text/html" does the right >> thing. The difference is that the former uses >> `gui-backend-get-selection', and the latter uses `gui-get-selection', >> and thus does the auto-detection. Po Lu> If this does solve the problem, please modify yank-media in such= a Po Lu> manner. It will make Emacs more robust against non-compliant se= lection Po Lu> owners, which is always welcome. I=CA=BCll do that, but not straight away :-) Robert --=20