This commit is contained in:
Araq
2016-11-30 11:00:51 +01:00
parent 5c46f26880
commit b1b2dd606b
3 changed files with 15 additions and 2 deletions

View File

@@ -227,8 +227,7 @@ proc setDefaultLibpath*() =
libpath = parentNimLibPath
proc canonicalizePath*(path: string): string =
when not FileSystemCaseSensitive: result = path.expandFilename.toLowerAscii
else: result = path.expandFilename
result = path.expandFilename
proc shortenDir*(dir: string): string =
## returns the interesting part of a dir

View File

@@ -0,0 +1,6 @@
# bug #5076
var str*: string
UpperCased.str = "hello"

View File

@@ -0,0 +1,8 @@
discard """
output: "hello"
"""
import UpperCased
# stress normalization rules:
echo Upper_Cased.str