Bug 19418 – UTF8 variable names can rejected on platforms where not supported in linker

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-20T21:59:50Z
Last change time
2024-12-13T19:01:25Z
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=23179
Moved to GitHub: dmd#17886 →

Comments

Comment #0 by ibuclaw — 2018-11-20T21:59:50Z
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.
Comment #1 by dkorpel — 2024-02-07T13:53:41Z
Comment #2 by robert.schadek — 2024-12-13T19:01:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17886 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB