Bugfix for modules with multi byte characters in the name (#8319)
This commit is contained in:
parent
9b98add6c7
commit
332469692d
2 changed files with 5 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ proc mangleName(m: BModule; s: PSym): Rope =
|
||||||
result = s.loc.r
|
result = s.loc.r
|
||||||
if result == nil:
|
if result == nil:
|
||||||
result = s.name.s.mangle.rope
|
result = s.name.s.mangle.rope
|
||||||
add(result, idOrSig(s, m.module.name.s, m.sigConflicts))
|
add(result, idOrSig(s, m.module.name.s.mangle, m.sigConflicts))
|
||||||
s.loc.r = result
|
s.loc.r = result
|
||||||
writeMangledName(m.ndi, s, m.config)
|
writeMangledName(m.ndi, s, m.config)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,7 @@ discard """
|
||||||
# Tests that module names can contain multi byte characters
|
# Tests that module names can contain multi byte characters
|
||||||
|
|
||||||
let a = 1
|
let a = 1
|
||||||
doAssert åäö.a == 1
|
doAssert åäö.a == 1
|
||||||
|
|
||||||
|
proc inlined() {.inline.} = discard
|
||||||
|
inlined()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue