From unknown Wed Aug 20 05:17:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20502 <20502@debbugs.gnu.org> To: bug#20502 <20502@debbugs.gnu.org> Subject: Status: 24.4; json-pretty-print escapes forward slashes in strings Reply-To: bug#20502 <20502@debbugs.gnu.org> Date: Wed, 20 Aug 2025 12:17:46 +0000 retitle 20502 24.4; json-pretty-print escapes forward slashes in strings reassign 20502 emacs submitter 20502 Martin Algesten severity 20502 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 04 11:35:31 2015 Received: (at submit) by debbugs.gnu.org; 4 May 2015 15:35:32 +0000 Received: from localhost ([127.0.0.1]:33883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpIP1-0003j3-C4 for submit@debbugs.gnu.org; Mon, 04 May 2015 11:35:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55808) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpAoJ-0005Yo-FO for submit@debbugs.gnu.org; Mon, 04 May 2015 03:29:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpAoD-0006Aw-6v for submit@debbugs.gnu.org; Mon, 04 May 2015 03:28:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpAoD-0006As-4l for submit@debbugs.gnu.org; Mon, 04 May 2015 03:28:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpAoC-0002Cl-4a for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 03:28:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpAo7-00067A-UE for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 03:28:56 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:35995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpAo7-00066x-NT for bug-gnu-emacs@gnu.org; Mon, 04 May 2015 03:28:51 -0400 Received: by lbbqq2 with SMTP id qq2so98914025lbb.3 for ; Mon, 04 May 2015 00:28:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; bh=Dgool2gfMzUcpoRvpaTWA1TZzGYsc9mGrzWJUCbzvLA=; b=CmoquVjPrPu1zxw6IV9VHvRbSMnlkSSeiJLBtlT3TG/gh1YHQr5sI1H1v2q7ca2gNa +IzAS99IElnqFXITGglxosn1Sv4jfGQxiawkOzowzLuyWjvYSoykuB0myuerLFa3omOp Oia/gHAMP28hd/SJsT7gEEaPuJ2BDPqS24jTdSG2vCV9KFBcwPK275SvKo5KwvHhxjJT MUWeJnhRYUyZnwfWvjgMs8ueniauRDx4qlVJVzJ0DMq2xXr0bA6TXLgjBTIWon29LUdD UkVEX5ZiMd7crNsGhMOu/fwcvOvlVS8E5Z/umNNVMdTtr2DMU0M2J5sJfff30bWkGnXd mJJA== X-Gm-Message-State: ALoCoQkz7Den3i/bSY9bElh2xKOEFZT6NPf7eVAwkWLxChs6VmRHZ2//m4N2tcq6WTVhU87wP6Fx X-Received: by 10.152.5.134 with SMTP id s6mr17249433las.99.1430724530340; Mon, 04 May 2015 00:28:50 -0700 (PDT) Received: from [10.12.31.55] (ns.tt.se. [193.183.175.252]) by mx.google.com with ESMTPSA id xx2sm3184114lbb.13.2015.05.04.00.28.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 May 2015 00:28:49 -0700 (PDT) From: Martin Algesten Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 24.4; json-pretty-print escapes forward slashes in strings Message-Id: <1CD6717D-B6F0-43BD-8A3E-3952F3AFDEBE@algesten.se> Date: Mon, 4 May 2015 09:28:48 +0200 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 04 May 2015 11:35:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Whe doing "pretty-print-json" on this: {"mimetype":"image/jpeg"} I end up with this: { "mimetype": "image\/jpeg" } Notice the incorrect escaping of /. In GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14) of 2014-10-24 on emperor.local Windowing system distributor `Apple', version 10.3.1347 Configured using: `configure --prefix=/usr/local/Cellar/emacs/24.4 --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/24.4/share/info/emacs --without-dbus --without-gnutls --with-ns --disable-ns-self-contained' Important settings: locale-coding-system: utf-8-unix Major mode: Javascript Minor modes in effect: global-git-gutter-mode: t global-whitespace-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail browse-url sh-script smie executable mule-util epg mm-archive message format-spec rfc822 mml mml-sec mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils network-stream starttls url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core gnus-util mm-util mail-prsvr password-cache url-vars finder-inf yaml-mode markdown-mode noutline outline easy-mmode pp apropos cus-edit wid-edit edmacro kmacro js byte-opt bytecomp byte-compile cconv json thingatpt sgml-mode dired misearch multi-isearch js2-mode cc-mode cc-fonts cc-guess cc-menus cc-styles cc-align cc-cmds cc-engine cc-vars cc-defs imenu tabify help-mode vc-git coffee-mode rx easymenu comint ansi-color ring grandshell-theme git-gutter advice help-fns cl-loaddefs cl-lib server package epg-config disp-table whitespace cus-start cus-load paren time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 264282 64021) (symbols 48 34301 0) (miscs 40 161 892) (strings 32 63165 17435) (string-bytes 1 1747786) (vectors 16 34781) (vector-slots 8 1390961 137733) (floats 8 99 790) (intervals 56 3558 417) (buffers 960 33)) From debbugs-submit-bounces@debbugs.gnu.org Mon May 04 13:19:07 2015 Received: (at 20502-done) by debbugs.gnu.org; 4 May 2015 17:19:08 +0000 Received: from localhost ([127.0.0.1]:33966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpK1L-0007pB-Mm for submit@debbugs.gnu.org; Mon, 04 May 2015 13:19:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:52914 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YpK1K-0007p4-HF for 20502-done@debbugs.gnu.org; Mon, 04 May 2015 13:19:06 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YpK1J-0001X3-3f; Mon, 04 May 2015 13:19:05 -0400 From: Glenn Morris To: 20502-done@debbugs.gnu.org Subject: Re: bug#20502: 24.4; json-pretty-print escapes forward slashes in strings References: <1CD6717D-B6F0-43BD-8A3E-3952F3AFDEBE@algesten.se> X-Spook: assassination cryptographic AK-47 9705 Samford Road X-Ran: *`w\^O|enaBN9.J.lJ+PybA^fA|N(2%&.WW#)J.YJ}i^*C1~xW^#@1VBdJlAy%.IZW["(I X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 04 May 2015 13:19:04 -0400 In-Reply-To: <1CD6717D-B6F0-43BD-8A3E-3952F3AFDEBE@algesten.se> (Martin Algesten's message of "Mon, 4 May 2015 09:28:48 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20502-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 25.1 Martin Algesten wrote: > Whe doing "pretty-print-json" on this: (You meant "json-pretty-print", as in the subject.) > {"mimetype":"image/jpeg"} > > I end up with this: > > { > "mimetype": "image\/jpeg" > } > > Notice the incorrect escaping of /. Thanks for the report. By experiment, this is already fixed in current master. > In GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14) From unknown Wed Aug 20 05:17:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Jun 2015 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator