digitalmars.D.bugs - [Issue 19418] New: UTF8 variable names can rejected on platforms
- d-bugmail puremagic.com (28/28) Nov 20 2018 https://issues.dlang.org/show_bug.cgi?id=19418
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 puremagic.com Reporter: ibuclaw 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. --
Nov 20 2018