mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
fixes #5076
This commit is contained in:
@@ -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
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user