Commit graph

42 commits

Author SHA1 Message Date
Phil Krylov
9e35631191
std/encodings: Fix open() documentation in regard to exception raised (#21187) 2022-12-28 10:26:52 +08:00
ringabout
3d2f0e2c7c
make more standard libraries work with nimPreviewSlimSystem (#20343)
* 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
2022-09-27 20:06:23 +02:00
flywind
15fdcd0c4d
workaround #18481 (#18482) 2021-07-13 09:22:33 +02:00
flywind
6869157cd1
[docs] improve std/encodings (#18458)
* [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>
2021-07-09 07:44:38 +02:00
flywind
016a8ccd7a
[std/encodings]move to tests (#17866) 2021-04-29 09:51:54 +02:00
flywind
d881a05bf6
[std/encodings] fix iconv headers on OpenBSD (#17872) 2021-04-27 10:14:26 -07:00
flywind
01bca8cd4f
fix gbk encodings on windows (#17843) 2021-04-26 14:48:25 +02:00
alaviss
c7dee55b87
encodings: use only one iconv definition [backport:1.2] (#14741)
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).
2020-06-21 19:28:03 +02:00
Timothee Cour
6e0c06f50e
fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + other fixes (#13550)
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html
* suppress warnRedefinitionOfLabel for nim doc
* lots of fixes for UnusedImport warnings
2020-03-13 20:42:41 +01:00
Nindaleth
34dbc5699e fix several typos in documentation and comments (#12553) 2019-10-30 09:08:45 +01:00
narimiran
dcf3181bd1 [backport] run nimpretty on string stuff 2019-09-30 13:58:13 +02:00
Andreas Rumpf
7cb31455ee
fixes #11618 (#11969) 2019-08-17 21:19:57 +02:00
amzak
f34ae81971 Fixed handling of empty strings for encodings conversions (#11897) 2019-08-07 19:56:42 +02:00
amzak
3d7d5cf121 Fixed utf8<->utf16 conversions on windows (#11888) 2019-08-06 03:30:47 -04:00
Benny Elgazar
a83d609960 exposing procs (#11218) 2019-05-11 10:32:34 +02:00
Araq
3f6168b337 removes deprecated T/P types 2018-11-16 13:27:56 +01:00
Andreas Rumpf
223e92b83a stdlib: documenation updates, the exception names have been changed 2018-10-25 07:42:45 +02:00
alaviss
7ef268274f Haiku support for Nim (#8542)
* 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
2018-08-14 09:35:07 +02:00
andri lim
2e6d073be1 fixes #8468, stdlib.encodings.convert not crash anymore on windows (#8470) 2018-07-30 12:04:49 +02:00
Araq
bbb0fd4eb7 remove deprecated stuff from the stdlib; introduce better deprecation warnings 2018-05-05 21:45:07 +02:00
Araq
ed79201d0b make more tests green 2018-04-30 11:16:56 +02:00
Anatoly Galiulin
24ec36f097 Fix iconv import on freebsd and netbsd (#5490) 2017-03-07 09:56:16 +01:00
Hans Raaf
9b64a73bad Removed libiconv prefix (on OS X) to make encodings compile on OS X.
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.
2015-10-28 20:36:09 +01:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
pdw
6914244f30 lib/pure/e-o - Dropped 'T' from types 2015-06-04 13:18:35 +02:00
Stephan Diehl
4fcf5adfe2 fix for https://github.com/nim-lang/Aporia/issues/69 2015-05-28 15:25:09 +02:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Guillaume Gelin
3119fe087d Happy new year! 2015-01-06 15:26:33 +01:00
Araq
d7d059a686 more tests green 2014-08-31 17:23:35 +02:00
Araq
12d2a37519 more modules updated 2014-08-28 01:39:45 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Araq
e712dbaef5 added OEMCP for the default OEM codepage 2014-06-26 15:52:23 +02:00
Araq
d986a5adb5 make encodings.nim case consistent 2014-01-19 01:23:38 +01:00
Araq
29357ab556 more tests are green 2013-12-08 01:47:07 +01:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Grzegorz Adam Hankiewicz
acfe55ab90 Adds macosx dynamic library name for libiconv.
Also adds some verbosity to the implicit test.
2012-12-17 20:15:43 +01:00
Araq
607f46a61a fixes #162 2012-07-10 20:41:23 +02:00
Araq
95faae2c0a some more bugfixes for the integer promotion rules 2012-07-10 01:12:03 +02:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
db0a4a9f86 bugfix: shallowCopy should not break bootstrapping anymore; encodings.nim for windows improved 2011-06-21 01:52:42 +02:00
Araq
de659eba65 added encodings stdlib 2011-06-16 02:03:33 +02:00