From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Newsgroups: gmane.emacs.bugs Subject: bug#40845: SVG rendering issues Date: Mon, 27 Apr 2020 12:04:31 -0400 Message-ID: References: <72ebf5eb-6b00-ebb4-dab3-a047e35ae1ae@gmail.com> <83mu6z7em5.fsf@gnu.org> <17307310-2afc-7941-8a48-5cd345d1ad63@gmail.com> <83k1237b2a.fsf@gnu.org> <20200425174651.GC82687@breton.holly.idiocy.org> <20200426211741.GA93046@breton.holly.idiocy.org> <09a19c49-91cb-8024-8c34-53d846d98313@gmail.com> <20200427152229.GA93571@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="55166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 To: Alan Third , Eli Zaretskii , 40845@debbugs.gnu.org, pipcet@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 27 18:06:15 2020 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 1jT6Gt-000EEj-Dc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 18:06:15 +0200 Original-Received: from localhost ([::1]:53852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT6Gs-0000Ev-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Apr 2020 12:06:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT6Fj-00076S-CP for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 12:05:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jT6Fi-0000p8-ST for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 12:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jT6Fi-0000p0-Dg for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 12:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jT6Fi-0006rc-8I for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2020 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Apr 2020 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40845 X-GNU-PR-Package: emacs Original-Received: via spool by 40845-submit@debbugs.gnu.org id=B40845.158800348126328 (code B ref 40845); Mon, 27 Apr 2020 16:05:02 +0000 Original-Received: (at 40845) by debbugs.gnu.org; 27 Apr 2020 16:04:41 +0000 Original-Received: from localhost ([127.0.0.1]:37944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT6FM-0006qZ-Sf for submit@debbugs.gnu.org; Mon, 27 Apr 2020 12:04:41 -0400 Original-Received: from mail-qk1-f179.google.com ([209.85.222.179]:34392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT6FL-0006qI-3Q for 40845@debbugs.gnu.org; Mon, 27 Apr 2020 12:04:39 -0400 Original-Received: by mail-qk1-f179.google.com with SMTP id t3so18566053qkg.1 for <40845@debbugs.gnu.org>; Mon, 27 Apr 2020 09:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=qKUbw0KV81OQObK6kJ1Yi/BjmODv7laWatQeW/s3kMc=; b=KMOJG4Kq7hg0+TNfwqHuLVsVfnBG6nMy/SMX1vJuaJAAkSUl6PkJcPzIabeFb9fbPL n4vdbz+V9YZ6umXVdqnT8aSoYCbDiEjox9b8PLOeT5eEvXEE0fUqRuHuHQJHLrN61bAF n/hJEw4CqiCRq5djys55HF+hmGoxVPuPy5nEbuRhHcYub23Ohl2Bvdasw3YwMkWz4WxA JxyCAjlzWhjvgo7M2FOnZVahZ+a1e1gGHKSGKvBkLkSWRFSlzyPt8XlCO9y7Werz0M0k TwDLELzueLV8VpSu4ORc1IqdsGLQvumb7Uq1h+qSVdMYVEJ4Hs89ycfxYBGN7Ucoqmza yQvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qKUbw0KV81OQObK6kJ1Yi/BjmODv7laWatQeW/s3kMc=; b=I7Ob7ov2JB86JWdHxfjthS+S7xjDjBWuKlaEhpfc1onV/OBsm0Gt1P8BJ8uDaR1n4P 4TGrxxeqvmoUhWliavOt5j4mMEtV2MNwe6qmoMQVt/LbPsbOE2MMG9iiUJ77Kivikf3l hjD3Vnj46CKHwQc0D0UGBaq6kBHHKdUfb/m/U4apPKg53AAcB0CAx4Wz1P2cVqednUGo Y2aXAKQP4VKFb7KFPmm8gHBfKhqXITPHwkqODeyUnoUes7VcGsjWpVPoXUUN4TrDi7Em IZLVS1S8U2S5fWj4e2JiFB7TnL2uwbFLh+cfxLj32scgfHCHQmrOcUz6C4Cjg/EGVXxC a3dQ== X-Gm-Message-State: AGi0PuZHNNCbM7DyRRX4HZqyY/a48ZpADIUtedydyWG5PGj6Z1iEIVoN QMDlCSRFDo9BzAjH65aAKvU= X-Google-Smtp-Source: APiQypJH8fCYmiEocKG0lyC9ZdstzxkuScMU23sdEmlq0F29QHF0be9LBIHsm5KEgJ46jMK0sswLmw== X-Received: by 2002:a37:a60c:: with SMTP id p12mr22701733qke.430.1588003473478; Mon, 27 Apr 2020 09:04:33 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:54d6:bfeb:aa49:9d3b? ([2601:184:4180:66e7:54d6:bfeb:aa49:9d3b]) by smtp.googlemail.com with ESMTPSA id b19sm11029144qkg.72.2020.04.27.09.04.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Apr 2020 09:04:31 -0700 (PDT) In-Reply-To: <20200427152229.GA93571@breton.holly.idiocy.org> Content-Language: en-GB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:179159 Archived-At: On 27/04/2020 11.22, Alan Third wrote: > On Sun, Apr 26, 2020 at 06:48:09PM -0400, Clément Pit-Claudel wrote: >> On 26/04/2020 17.17, Alan Third wrote: >>> I’m happy to give this a go, but I’m not sure about base64 encoding. >>> Do we already have a way of doing that to a char buffer? >> >> We have base64-encode-region and base64-encode-string, which are >> both C functions — but why do we need to base64 encode? > > We can’t just put the contents in directly […] > as the file may (and probably should) have XML declarations at the > start which break the SVG file. We could strip them out but I’m not > sure that that’s better than base64 encoding, as it would mean > modifying the contents and I’m not sure that’s the only thing that > might cause problems. Excellent point, I hadn't considered the xml declaration at the top.