www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21557] New: std.encoding and std.utf do not use replacement


          Issue ID: 21557
           Summary: std.encoding and std.utf do not use replacement char
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: deadalnix gmail.com

std.utf uses std.utf.replacementDchar, which seems is what unicode actually
expects to happen.

However, std.encoding uses std.encoding.INVALID_SEQUENCE , defined here:

This later value isn't the one expected by the unicode standard.

Additionally, the later value creates a problem because now there are two
values to handle for replacement chars.

Jan 18 2021