[Issue 19418] New: UTF8 variable names can rejected on platforms where not supported in linker

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 20 21:59:50 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19418

          Issue ID: 19418
           Summary: UTF8 variable names can rejected on platforms where
                    not supported in linker
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

One could follow the example of C11. 6.4.2.1 General, n.71 suggests
---
On systems in which linkers cannot accept extended characters, an
encoding of the universal character name may be used in forming valid
external identifiers. For example, some otherwise unused character or
sequence of characters may be used to encode the \u in a universal
character name.  Extended characters may produce a long external
identifier
---

However for consistency, having a special mangle/encoding of UTF8 characters in
symbol names could be done instead.

Since UTF8 characters in symbols are not link compatible with C or C++ anyway,
there is no problem in doing it this way across all linkages.

--


More information about the Digitalmars-d-bugs mailing list