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#66941: 29.1; Emacs on Windows can't display CJK characters correctly in svg images Date: Sun, 05 Nov 2023 08:47:08 +0200 Message-ID: <83bkc84ryr.fsf@gnu.org> References: <87wmuxe43h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26461"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66941@debbugs.gnu.org To: Ilya Chernyshov , Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 05 07:48:47 2023 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 1qzWwB-0006gM-Fq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Nov 2023 07:48:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzWvs-0002qG-Gc; Sun, 05 Nov 2023 01:48:28 -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 1qzWvq-0002q8-Bm for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:48:26 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzWvp-00089r-F7 for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:48:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzWwP-0001Jf-Mp for bug-gnu-emacs@gnu.org; Sun, 05 Nov 2023 01:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Nov 2023 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66941 X-GNU-PR-Package: emacs Original-Received: via spool by 66941-submit@debbugs.gnu.org id=B66941.16991668924749 (code B ref 66941); Sun, 05 Nov 2023 06:49:01 +0000 Original-Received: (at 66941) by debbugs.gnu.org; 5 Nov 2023 06:48:12 +0000 Original-Received: from localhost ([127.0.0.1]:36039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzWvb-0001EV-KN for submit@debbugs.gnu.org; Sun, 05 Nov 2023 01:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzWvY-0001Dw-NV for 66941@debbugs.gnu.org; Sun, 05 Nov 2023 01:48:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qzWur-00085d-IF; Sun, 05 Nov 2023 01:47:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=whYXftVNZczYE2jriDM44IEQovCndKnVfWxR7n2ZrNw=; b=ROaVagkCETiVkkuLfH2e IP1TFaTeevYI+NDj5xWkp9AjK+J88OVMIVGqpP4GphnKpFYbtaqS/VxKnW005tfs/Tbd5L5dnVqU9 qgStxF5qs1y/lCc1U+X9gNA7FZRvo8dsLyT2Pmqa+BnUOTpWpNVWo/wXcHuyxMz33JK3G9uVufq3G PNe1WguEEh9jZptjnkW9P8yS878gNPyEn8U9Yu0TZk5HFaamab4RkSGtt/fTo7z8lFnWGrwzoO9Ab tiMUMivFoc84VWjXLk5r5V/1F/4M1QpK1cq/8z9kfWuEjvzTBSQFVWu8vnupE+xhq3ctaWc+xRSF0 Jxbz0xKiRnDI+g==; In-Reply-To: <87wmuxe43h.fsf@gmail.com> (message from Ilya Chernyshov on Sun, 05 Nov 2023 02:00:18 +0700) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273807 Archived-At: > From: Ilya Chernyshov > Date: Sun, 05 Nov 2023 02:00:18 +0700 > > > Hi. Can't reproduce the issue by myself (I'm on linux), but already have > been sent a couple of issues in my package repo. > > Screenshot: > > https://user-images.githubusercontent.com/9244946/280170406-64aca531-3542-40b7-9ae3-fc13ab3f1029.png > > Link to the issue: > > https://github.com/ichernyshovvv/org-timeblock/issues/36 > > Code to reproduce: > > (progn > (require 'svg) > (switch-to-buffer "*svg-test*") > (let ((svg-image (svg-create 200 200)) > (inhibit-read-only t)) > (erase-buffer) > (svg-text svg-image "我喜欢自由软件" :y 100 :x 50) > (svg-print svg-image) > (image-mode))) I cannot get Emacs on Windows to display _any_ non-ASCII text with the above recipe, not even if I use Latin-1 characters or characters from the current system codepage. Emacs encodes non-ASCII characters as &#nnnn numbers (you can see that if you type "C-c C-c" in the *svg-test* buffer), which is probably correct, but the SVG image is not displayed for some reason. Alan, any ideas or suggestions?