From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#24784: 26.0.50; JSON strings with utf-16 escape codes Date: Mon, 24 Oct 2016 20:06:18 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1477335527 18164 195.159.176.226 (24 Oct 2016 18:58:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2016 18:58:47 +0000 (UTC) To: 24784@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 24 20:58:43 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bykRy-0001jx-Aa for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2016 20:58:22 +0200 Original-Received: from localhost ([::1]:48994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bykS0-0004en-Lt for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2016 14:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byjeM-0001RQ-Lo for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byjeI-0001hm-6s for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:07:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39183) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byjeI-0001hg-3S for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byjeH-0005CL-TZ for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2016 18:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24784 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147733240319951 (code B ref -1); Mon, 24 Oct 2016 18:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2016 18:06:43 +0000 Original-Received: from localhost ([127.0.0.1]:54580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byjdz-0005Bi-K3 for submit@debbugs.gnu.org; Mon, 24 Oct 2016 14:06:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byjdx-0005BV-5l for submit@debbugs.gnu.org; Mon, 24 Oct 2016 14:06:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byjdq-0001Wm-RU for submit@debbugs.gnu.org; Mon, 24 Oct 2016 14:06:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byjdq-0001WY-NN for submit@debbugs.gnu.org; Mon, 24 Oct 2016 14:06:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byjdp-0000zQ-GX for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:06:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byjdl-0001Ry-1v for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:06:33 -0400 Original-Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byjdk-0001QN-RL for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 14:06:28 -0400 Original-Received: by mail-wm0-x242.google.com with SMTP id o81so10948550wma.2 for ; Mon, 24 Oct 2016 11:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version; bh=uAyMNHKkYQiuEN229znX13JkMoQCcJvBaQLGPLed6Kk=; b=NE8nZ0RaQ6tvxJagfc2txLF0ZtbnsDi50gqTo+nmaeDmRLNcb9uix7XcoUqG4ZpOPG ownOe0q66Gzqv8je4skYqlRgoGkWoddN2gg0loiWZUkj5Y8r9tLDH6Ub3/iYBDOjaS29 2BzTa1RVzocF1DA22b534gBMBrTQ5FFCGlnFq/Yds7NKurVgOQygT8JvY4CDWsVG7tQU kTpUDoxjC9P0O9PWnC9haWnL535hPaIuA+UI5lq26JXOTQOyrSWjjYB6+yf6lcON2VYM SJc1nYhLJZN3kJwJCNZLQBpY+gW5Lsiu/dqNw3zh/J2Epb94d9KfhRFDz6X3a5NxlWI7 HaFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=uAyMNHKkYQiuEN229znX13JkMoQCcJvBaQLGPLed6Kk=; b=MLz0+4wdf5kSdUzahLRUnPf/Us3HReoX3ckxtz9BKXGSkOrDxvVub5rKnD0sm8CxWm B/U0Df3yKhtfKXLfMRZaGWqDf4DeO0EIlIAyy+97RcVJKVxmOxChzX+4ns1sqbgNu9UA 4Gmv0fq6qEFiAtmfmmq3W+vZ0lZoN7TlC4M6A4m+ajME6YoooEFUAElTv5meUrykokhh WOxrkGrq2AijqDD0C0qpKdIiU7xSwGfAsqhme1kw1mm9jusGelOk11UErJe0cQDfmiTb NdA/2hEizaJ9/HM2WKCN9buomgtPxkc75FFaBCRIxD5htQMN/zAMJlMNr0RjQ9OW6PZW +LjQ== X-Gm-Message-State: AA6/9RmMiOnGwUaagHqa1crA/CL9XoUqghuKnyBFEmhVEHugYYSN4Tmdw5Xiy+rx2z7oKQ== X-Received: by 10.28.1.83 with SMTP id 80mr15712992wmb.31.1477332386976; Mon, 24 Oct 2016 11:06:26 -0700 (PDT) Original-Received: from caladan (dial-184214.pool.broadband44.net. [212.46.184.214]) by smtp.gmail.com with ESMTPSA id q125sm16060786wmd.2.2016.10.24.11.06.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2016 11:06:25 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124968 Archived-At: json-read-from-string doesn't parse strings correctly if the the \u syntax is used to write UTF-16 surrogates: (equal (json-read-from-string "\"\\uD834\\uDD1E\"") "\"\U0001D11E\"") => nil The correct result t. To quote RFC 7159[*]: To escape an extended character that is not in the Basic Multilingual Plane, the character is represented as a 12-character sequence, encoding the UTF-16 surrogate pair. So, for example, a string containing only the G clef character (U+1D11E) may be represented as "\uD834\uDD1E". [*] https://tools.ietf.org/html/rfc7159#section-7 In GNU Emacs 26.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2016-10-24 built on caladan Repository revision: 26ccd19269c040ad5960a7567aa5fc88f142c709 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.5 (jessie) Configured using: 'configure --with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no' Configured features: PNG SOUND DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix