fixes #5076
This commit is contained in:
parent
5c46f26880
commit
b1b2dd606b
3 changed files with 15 additions and 2 deletions
|
|
@ -227,8 +227,7 @@ proc setDefaultLibpath*() =
|
||||||
libpath = parentNimLibPath
|
libpath = parentNimLibPath
|
||||||
|
|
||||||
proc canonicalizePath*(path: string): string =
|
proc canonicalizePath*(path: string): string =
|
||||||
when not FileSystemCaseSensitive: result = path.expandFilename.toLowerAscii
|
result = path.expandFilename
|
||||||
else: result = path.expandFilename
|
|
||||||
|
|
||||||
proc shortenDir*(dir: string): string =
|
proc shortenDir*(dir: string): string =
|
||||||
## returns the interesting part of a dir
|
## returns the interesting part of a dir
|
||||||
|
|
|
||||||
6
tests/modules/UpperCased.nim
Normal file
6
tests/modules/UpperCased.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
# bug #5076
|
||||||
|
|
||||||
|
var str*: string
|
||||||
|
|
||||||
|
UpperCased.str = "hello"
|
||||||
8
tests/modules/tuppercased.nim
Normal file
8
tests/modules/tuppercased.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
discard """
|
||||||
|
output: "hello"
|
||||||
|
"""
|
||||||
|
|
||||||
|
import UpperCased
|
||||||
|
|
||||||
|
# stress normalization rules:
|
||||||
|
echo Upper_Cased.str
|
||||||
Loading…
Add table
Add a link
Reference in a new issue