GNU bug report logs -
#20502
24.4; json-pretty-print escapes forward slashes in strings
Previous Next
Reported by: Martin Algesten <martin <at> algesten.se>
Date: Mon, 4 May 2015 15:36:03 UTC
Severity: normal
Found in version 24.4
Fixed in version 25.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20502 in the body.
You can then email your comments to 20502 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#20502
; Package
emacs
.
(Mon, 04 May 2015 15:36:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Martin Algesten <martin <at> algesten.se>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 04 May 2015 15:36:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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))
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Mon, 04 May 2015 17:20:07 GMT)
Full text and
rfc822 format available.
Notification sent
to
Martin Algesten <martin <at> algesten.se>
:
bug acknowledged by developer.
(Mon, 04 May 2015 17:20:08 GMT)
Full text and
rfc822 format available.
Message #10 received at 20502-done <at> debbugs.gnu.org (full text, mbox):
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)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 02 Jun 2015 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.