From unknown Fri Aug 15 19:36:58 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#36988 <36988@debbugs.gnu.org> To: bug#36988 <36988@debbugs.gnu.org> Subject: Status: 26.2; Error "Non-hex digit used for Unicode escape" is not too helpful Reply-To: bug#36988 <36988@debbugs.gnu.org> Date: Sat, 16 Aug 2025 02:36:58 +0000 retitle 36988 26.2; Error "Non-hex digit used for Unicode escape" is not to= o helpful reassign 36988 emacs submitter 36988 Drew Adams severity 36988 wishlist tag 36988 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 09 12:25:13 2019 Received: (at submit) by debbugs.gnu.org; 9 Aug 2019 16:25:13 +0000 Received: from localhost ([127.0.0.1]:43172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hw7hZ-0007KT-3q for submit@debbugs.gnu.org; Fri, 09 Aug 2019 12:25:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:54904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hw7hX-0007KI-7k for submit@debbugs.gnu.org; Fri, 09 Aug 2019 12:25:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59591) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hw7hW-0008Mg-5y for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 12:25:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hw7hV-0000bs-5j for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 12:25:10 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:40166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hw7hU-0000at-RP for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2019 12:25:09 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79GO6Jb019265 for ; Fri, 9 Aug 2019 16:25:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=avfgvMGvuO93W9mBV2PlrnJfJok5ivnoCz/Aw/ygKD0=; b=oXOc0JHp1iBDnL5WRxJhmc5Ny/uC4USVAYzULAAWLh1JlXqKCaUmU+xah9lZb2XD70ZD ClQGha77nt81lrjVhwh/W9ji0Oh8V9sMKtF73SPuCad9k3ipuaET0pAV7tCmgzTdwebV eNk0NQ0NxcNjXrstYLWP1bZCoN4PFrADKZNlZ0Jo6kuEoU0IZ/C+Fez1eO2Vt6ZpfsRS Y4G82ttAbFLojVJmwrVwKqwlTjNtpTfMArAx/skYRhHD98XigTniMk9PsOsg4P9ZSmSH c8ilLYGGU/FE3irVmySHgdrCCUTZgoPg6Rt2aAEXE+gPYBNBisvNEaV9TZt/eNasK1I+ DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=avfgvMGvuO93W9mBV2PlrnJfJok5ivnoCz/Aw/ygKD0=; b=bRbsg/vDrLyxCv1CVCATC4xUpmL7JCXAjNF4q2G4qSi/ZyVn1i+CT/38UEbAnBtzch/C lU7XBQGWFt04Rm17Ui2s5XmRezquXqYLiNKCowhRTzl/2RTmksD4ygO6bIHyS3mV5K3L 8Fc0e4qD0vvmqprQv7SYHjzINejf9ElgoLfv7eIaUW7AXz4/DPRkH73p7UbxOc8UuLr1 /296rkgGnpUEC5M0yLo+H78ScrQ9HAFZNiFbcGFw3GNPkJk5dRASwZ+y/M+FGL7L5nf5 3OQChiUptjwgWtiNfHt/9egThh00RbF55K+K/nEGkAFtIXU6jJGIf6j4hArFAUcX45t2 uw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2u8hgp8ucj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 09 Aug 2019 16:25:04 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x79GNZmP044891 for ; Fri, 9 Aug 2019 16:25:03 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2u8x9fp4g5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 09 Aug 2019 16:25:03 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x79GP2oc025803 for ; Fri, 9 Aug 2019 16:25:02 GMT MIME-Version: 1.0 Message-ID: <1cef4784-f090-4a83-b54d-496f23569dd3@default> Date: Fri, 9 Aug 2019 09:25:01 -0700 (PDT) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 26.2; Error "Non-hex digit used for Unicode escape" is not too helpful X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=927 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090160 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9344 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=977 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908090160 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.85 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.3 (--) emacs -Q Put this text in *scratch*, then move point to bob: "\u2" Then evaluate (read (current-buffer)). You get this error: Debugger entered--Lisp error: (error "Non-hex digit used for Unicode escape= ") read(#) eval((read (current-buffer)) nil) eval-expression((read (current-buffer)) nil nil 127) funcall-interactively(eval-expression (read (current-buffer)) nil nil 127= ) call-interactively(eval-expression nil nil) command-execute(eval-expression) Dunno what the right fix/enhancement is, but this error message does not seem very helpful in this case. FWIW, I stumbled on this when code tried to read some Lisp code that contained an MS Windows absolute file name where the backslashes were not escaped, such as "C:\Users\foo.html". It would have been nice if a better error message could have been presented to the user in such a case. Perhaps there could be some way to point more or less to the offensive "Non-hex digit used for Unicode escape"? In this case, the offense was apparently committed by the \u. In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13 Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749 Windowing system distributor `Microsoft Corp.', version 10.0.17763 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 00:21:39 2019 Received: (at 36988) by debbugs.gnu.org; 23 Aug 2019 04:21:39 +0000 Received: from localhost ([127.0.0.1]:38789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1150-0001jo-U6 for submit@debbugs.gnu.org; Fri, 23 Aug 2019 00:21:39 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i114x-0001je-ER for 36988@debbugs.gnu.org; Fri, 23 Aug 2019 00:21:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i114t-0003f7-II; Fri, 23 Aug 2019 06:21:33 +0200 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#36988: 26.2; Error "Non-hex digit used for Unicode escape" is not too helpful References: <1cef4784-f090-4a83-b54d-496f23569dd3@default> Date: Fri, 23 Aug 2019 06:21:31 +0200 In-Reply-To: <1cef4784-f090-4a83-b54d-496f23569dd3@default> (Drew Adams's message of "Fri, 9 Aug 2019 09:25:01 -0700 (PDT)") Message-ID: <87r25ch5pw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams writes: > emacs -Q > > Put this text in *scratch*, then move point to bob: > > "\u2" > > Then evaluate (read (current-buffer)). You get this error: > > Debugger entered--Lisp error: (error "Non-hex digit used [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36988 Cc: 36988@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Drew Adams writes: > emacs -Q > > Put this text in *scratch*, then move point to bob: > > "\u2" > > Then evaluate (read (current-buffer)). You get this error: > > Debugger entered--Lisp error: (error "Non-hex digit used for Unicode escape") > read(#) > eval((read (current-buffer)) nil) > eval-expression((read (current-buffer)) nil nil 127) > funcall-interactively(eval-expression (read (current-buffer)) nil nil 127) > call-interactively(eval-expression nil nil) > command-execute(eval-expression) [...] > Perhaps there could be some way to point more or less to the offensive > "Non-hex digit used for Unicode escape"? In this case, the offense was > apparently committed by the \u. No, the quote mark. I've now changed this error message to be a bit more helpful: Non-hex character used for Unicode escape: " (34) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 00:21:44 2019 Received: (at control) by debbugs.gnu.org; 23 Aug 2019 04:21:44 +0000 Received: from localhost ([127.0.0.1]:38792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1156-0001k7-69 for submit@debbugs.gnu.org; Fri, 23 Aug 2019 00:21:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1151-0001jp-9I for control@debbugs.gnu.org; Fri, 23 Aug 2019 00:21:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i114y-0003fE-NW for control@debbugs.gnu.org; Fri, 23 Aug 2019 06:21:38 +0200 Date: Fri, 23 Aug 2019 06:21:36 +0200 Message-Id: <87pnkwh5pr.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36988 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 36988 fixed close 36988 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) tags 36988 fixed close 36988 27.1 quit From unknown Fri Aug 15 19:36:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Sep 2019 11:24:10 +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