fixes #162
This commit is contained in:
parent
759d372863
commit
607f46a61a
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ proc open*(destEncoding = "UTF-8", srcEncoding = "CP1252"): PConverter =
|
||||||
## opens a converter that can convert from `srcEncoding` to `destEncoding`.
|
## opens a converter that can convert from `srcEncoding` to `destEncoding`.
|
||||||
## Raises `EIO` if it cannot fullfill the request.
|
## Raises `EIO` if it cannot fullfill the request.
|
||||||
when not defined(windows):
|
when not defined(windows):
|
||||||
result = iconvOpen(srcEncoding, destEncoding)
|
result = iconvOpen(destEncoding, srcEncoding)
|
||||||
if result == nil:
|
if result == nil:
|
||||||
raise newException(EInvalidEncoding,
|
raise newException(EInvalidEncoding,
|
||||||
"cannot create encoding converter from " &
|
"cannot create encoding converter from " &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue