Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#147] Hexadecimal escapes in strings are not supported

Date:
2015-11-07 12:53
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
None
Operating System:
Generic Unix
Component:
Compiler
Resolution:
Fixed
Severity:
Cosmetic
OS Version:
N/A
SML/NJ Version:
110.79
Keywords:
lexis
URL:
Transcript (of reproduction):
Standard ML of New Jersey v110.79 [built: Sun Oct 4 14:45:06 2015] - (* The following should result in val shriek = "!" *) val shriek = "\u0021"; - stdIn:2.14-2.16 Error: unclosed string
Source (for reproduction):
(* The following should result in val shriek = "!" *) val shriek = "\u0021";
Summary:
Hexadecimal escapes in strings are not supported

Detailed description
The \uxxxx syntax for hexadecimal strings is not supported:


Submitted via web form by Rob Arthan <rda@lemma-one.com>

Comments:

Message  ↓
Date: 2016-08-04 14:53
Sender: John Reppy

My original fix mapped non-ASCII code points to UTF-8, but I now think that this is the wrong semantics. Instead, we treat "\u" escapes the same way that decimal escapes are handled.

Date: 2015-11-09 15:35
Sender: John Reppy

Fixed for 110.80. Non-ascii code points are mapped to UTF-8.

Attached Files:

Changes

Field Old Value Date By
status_idOpen2015-11-09 15:35jhr
close_dateNone2015-11-09 15:35jhr
assigned_tonone2015-11-09 15:35jhr
detailsThe \uxxxx syntax for hexadecimal strings is not supported: Submitted via web form by Rob Arthan <rda@lemma-one.com> 2015-11-09 15:35jhr
ResolutionNone2015-11-09 15:35jhr
Transcript (of reproduction)Standard ML of New Jersey v110.79 [built: Sun Oct 4 14:45:06 2015] - (* The following should result in val shriek = "!" *) val shriek = "\u0021"; - stdIn:2.14-2.16 Error: unclosed string2015-11-09 15:35jhr
Source (for reproduction)(* The following should result in val shriek = "!" *) val shriek = "\u0021"; 2015-11-09 15:35jhr