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

View file

@ -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

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