summary refs log tree commit diff stats
path: root/lib/pure/encodings.nim
Commit message (Collapse)AuthorAgeFilesLines
* Update encodings.nim, fix `open` with bad arg raising no `EncodingError` ↵lit2024-04-061-1/+1
| | | | | | (#23481) On POSIX, `std/encodings` uses iconv, and `iconv_open` returns `(iconv_t) -1` on failure, not `NULL`
* complete std prefixes for stdlib (#22887)ringabout2023-10-301-2/+2
| | | | follow up https://github.com/nim-lang/Nim/pull/22851 follow up https://github.com/nim-lang/Nim/pull/22873
* std/encodings: Fix open() documentation in regard to exception raised (#21187)Phil Krylov2022-12-281-1/+1
|
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* workaround #18481 (#18482)flywind2021-07-131-18/+20
|
* [docs] improve std/encodings (#18458)flywind2021-07-091-12/+41
| | | | | | | | | | | | | | | | | | | | * [docs] improve std/encodings * tiny * shrink * Apply suggestions from code review Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Apply suggestions from code review * Update lib/pure/encodings.nim Co-authored-by: Varriount <Varriount@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Varriount <Varriount@users.noreply.github.com>
* [std/encodings]move to tests (#17866)flywind2021-04-291-72/+0
|
* [std/encodings] fix iconv headers on OpenBSD (#17872)flywind2021-04-271-1/+3
|
* fix gbk encodings on windows (#17843)flywind2021-04-261-0/+1
|
* encodings: use only one iconv definition [backport:1.2] (#14741)alaviss2020-06-211-18/+15
| | | | | | | | Fix an issue reported on IRC: using encodings with --dynlibOverrideAll result in duplicated iconv definitions, causing compile errors. This commit remove the `var` wrapper of iconv and go all out on pointers, as it should due to how the API accepts nil. Also corrected the API to resemble iconv(3p).
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + ↵Timothee Cour2020-03-131-1/+2
| | | | | | | | other fixes (#13550) * fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-301-1/+1
|
* [backport] run nimpretty on string stuffnarimiran2019-09-301-159/+165
|
* fixes #11618 (#11969)Andreas Rumpf2019-08-171-3/+6
|
* Fixed handling of empty strings for encodings conversions (#11897)amzak2019-08-071-5/+13
|
* Fixed utf8<->utf16 conversions on windows (#11888)amzak2019-08-061-39/+108
|
* exposing procs (#11218)Benny Elgazar2019-05-111-2/+2
|
* removes deprecated T/P typesAraq2018-11-161-1/+0
|
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-1/+1
|
* Haiku support for Nim (#8542)alaviss2018-08-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku
* fixes #8468, stdlib.encodings.convert not crash anymore on windows (#8470)andri lim2018-07-301-4/+4
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-2/+0
|
* make more tests greenAraq2018-04-301-1/+1
|
* Fix iconv import on freebsd and netbsd (#5490)Anatoly Galiulin2017-03-071-4/+9
|
* Removed libiconv prefix (on OS X) to make encodings compile on OS X.Hans Raaf2015-10-281-10/+4
| | | | | | | | I am not sure since which version OS X does include the libiconv library without the `lib` prefix. But it seems this is the case for some years now. If there are ways to check for the OS X version at compile time this may be needed to support older OS X versions. But I guess thats not needed for most users working with Nim anyway.
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-185/+185
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* lib/pure/e-o - Dropped 'T' from typespdw2015-06-041-2/+3
|
* fix for https://github.com/nim-lang/Aporia/issues/69Stephan Diehl2015-05-281-1/+1
|
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
|
* Fix typosFederico Ceratto2015-02-151-1/+1
|
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* more tests greenAraq2014-08-311-12/+12
|
* more modules updatedAraq2014-08-281-9/+9
|
* big renameAraq2014-08-271-16/+18
|
* added OEMCP for the default OEM codepageAraq2014-06-261-0/+1
|
* make encodings.nim case consistentAraq2014-01-191-33/+31
|
* more tests are greenAraq2013-12-081-5/+5
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* Adds macosx dynamic library name for libiconv.Grzegorz Adam Hankiewicz2012-12-171-4/+11
| | | | Also adds some verbosity to the implicit test.
* fixes #162Araq2012-07-101-1/+1
|
* some more bugfixes for the integer promotion rulesAraq2012-07-101-2/+2
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* bugfix: shallowCopy should not break bootstrapping anymore; encodings.nim ↵Araq2011-06-211-2/+13
| | | | for windows improved
* added encodings stdlibAraq2011-06-161-0/+445