summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2018-05-31 09:38:43 +0200
committerDmitry Atamanov <data-man@users.noreply.github.com>2018-05-31 10:38:43 +0300
commiteb8f15d97c2aba8e0bf56a4da151d919814c9745 (patch)
treed8221e0ffceff7c02ca1024808865af81189ae3b /compiler
parenta55f49a7b4e03bf9cd0f6538a7c34fb29db22bcc (diff)
downloadNim-eb8f15d97c2aba8e0bf56a4da151d919814c9745.tar.gz
Support multi byte characters in module names (#7916)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 79bcf0491..6a16474c0 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -1099,7 +1099,7 @@ proc getSomeInitName(m: PSym, suffix: string): Rope =
   if {sfSystemModule, sfMainModule} * m.flags == {}:
     result = m.owner.name.s.mangle.rope
     result.add "_"
-  result.add m.name.s
+  result.add m.name.s.mangle
   result.add suffix
 
 proc getInitName(m: PSym): Rope =