mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
fixes #162
This commit is contained in:
@@ -298,7 +298,7 @@ proc open*(destEncoding = "UTF-8", srcEncoding = "CP1252"): PConverter =
|
||||
## opens a converter that can convert from `srcEncoding` to `destEncoding`.
|
||||
## Raises `EIO` if it cannot fullfill the request.
|
||||
when not defined(windows):
|
||||
result = iconvOpen(srcEncoding, destEncoding)
|
||||
result = iconvOpen(destEncoding, srcEncoding)
|
||||
if result == nil:
|
||||
raise newException(EInvalidEncoding,
|
||||
"cannot create encoding converter from " &
|
||||
|
||||
Reference in New Issue
Block a user