-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 23179 - Unicode in symbol names in DLLs breaks MSVC linker
- Loading branch information
richard andrew cattermole
committed
Jun 13, 2022
1 parent
4ee3ac4
commit 19b059f
Showing
3 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module run.unicode_06_哪里; | ||
|
||
int 哪里(int ö){ | ||
return ö+2; | ||
} | ||
|
||
version(Windows) { | ||
static assert(() { | ||
foreach(char c; 哪里.mangleof) { | ||
if (c == '哪' || c == '里') | ||
return false; | ||
} | ||
|
||
return true; | ||
}(), "Function mangling on Windows must not contain Unicode characters. Got: " ~ 哪里.mangleof); | ||
} |