Bram Moolenaar
5f6b379ff3
patch 8.1.0731: JS encoding does not handle negative infinity
...
Problem: JS encoding does not handle negative infinity.
Solution: Add support for negative infinity for JS encoding. (Dominique
Pelle, closes #3792 )
2019-01-12 14:24:27 +01:00
Bram Moolenaar
d155d7a851
patch 8.1.0615: get_tv function names are not consistent
...
Problem: Get_tv function names are not consistent.
Solution: Rename to tv_get.
2018-12-21 16:04:21 +01:00
Bram Moolenaar
6dff58f15c
patch 8.1.0443: unnecessary static function prototypes
...
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
2018-09-30 21:43:26 +02:00
Bram Moolenaar
ea39176baa
patch 8.0.1677: no compiler warning for wrong format in vim_snprintf()
...
Problem: No compiler warning for wrong format in vim_snprintf().
Solution: Add printf attribute for gcc. Fix reported problems.
2018-04-08 13:07:22 +02:00
Bram Moolenaar
625f0c1eb7
patch 8.0.1602: crash in parsing JSON
...
Problem: Crash in parsing JSON.
Solution: Fail when using array or dict as dict key. (Damien)
2018-03-13 13:10:41 +01:00
Bram Moolenaar
b29d328eb4
patch 8.0.1391: encoding empty string to JSON sometimes gives "null"
...
Problem: Encoding empty string to JSON sometimes gives "null".
Solution: Handle NULL string as empty string. (closes #2446 )
2017-12-15 21:25:01 +01:00
Bram Moolenaar
059b7482a2
patch 8.0.0309: cannot use an empty key in json
...
Problem: Cannot use an empty key in json.
Solution: Allow for using an empty key.
2017-02-05 16:34:43 +01:00
Bram Moolenaar
e2c6037da3
patch 8.0.0216: decoding js style json may fail
...
Problem: When decoding JSON with a JS style object the JSON test may use a
NULL pointer. (Coverity)
Solution: Check for a NULL pointer.
2017-01-22 15:56:26 +01:00
Bram Moolenaar
83381f7129
patch 8.0.0180: error E937 is used twice
...
Problem: Error E937 is used both for duplicate key in JSON and for trying
to delete a buffer that is in use.
Solution: Rename the JSON error to E938. (Norio Takagi, closes #1376 )
2017-01-14 14:36:08 +01:00
Bram Moolenaar
ee142add22
patch 8.0.0171: JS style JSON does not support single quotes
...
Problem: JS style JSON does not support single quotes.
Solution: Allow for single quotes. (Yasuhiro Matsumoto, closes #1371 )
2017-01-11 21:50:08 +01:00
Bram Moolenaar
e32abbe42c
patch 8.0.0170: crash in channel test
...
Problem: Channel test fails for using freed memory.
Solution: Fix memory use in json_decode().
2017-01-10 22:57:34 +01:00
Bram Moolenaar
8b2f19536f
patch 8.0.0169: json_decode() may run out of stack space
...
Problem: For complicated string json_decode() may run out of stack space.
Solution: Change the recursive solution into an iterative solution.
2017-01-10 19:44:18 +01:00
Bram Moolenaar
03c60c1573
patch 8.0.0166: JSON with a duplicate key gives an internal error
...
Problem: JSON with a duplicate key gives an internal error. (Lcd)
Solution: Give a normal error. Avoid an error when parsing JSON from a
remote client fails.
2017-01-10 15:15:37 +01:00
Bram Moolenaar
95f096030e
patch 8.0.0074
...
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
2016-11-10 20:01:45 +01:00
Bram Moolenaar
98500fdc61
patch 8.0.0067
...
Problem: VMS has a problem with infinity.
Solution: Avoid an overflow. (Zoltan Arpadffy)
2016-11-06 14:17:16 +01:00
Bram Moolenaar
de5e2c219b
patch 8.0.0059
...
Problem: Vim does not build on VMS systems.
Solution: Various changes for VMS. (Zoltan Arpadffy)
2016-11-04 20:35:31 +01:00
Bram Moolenaar
7756e7465d
patch 8.0.0046
...
Problem: Using NUL instead of NULL.
Solution: Change to NULL. (Dominique Pelle)
2016-10-21 20:35:37 +02:00
Bram Moolenaar
edf3f97ae2
patch 7.4.2293
...
Problem: Modelines in source code are inconsistant.
Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
2016-08-29 22:49:24 +02:00
Bram Moolenaar
f1f0792e55
patch 7.4.2258
...
Problem: Two JSON messages are sent without a separator.
Solution: Separate messages with a NL. (closes #1001 )
2016-08-26 17:58:53 +02:00
Bram Moolenaar
22fcfad292
patch 7.4.1976
...
Problem: Number variables are not 64 bits while they could be.
Solution: Add the num64 feature. (Ken Takata)
2016-07-01 18:17:26 +02:00
Bram Moolenaar
dc633cf827
patch 7.4.1780
...
Problem: Warnings reported by cppcheck.
Solution: Fix the warnings. (Dominique Pelle)
2016-04-23 14:33:19 +02:00
Bram Moolenaar
46c00a6565
patch 7.4.1666
...
Problem: When reading JSON from a channel all readahead is used.
Solution: Use the fill function to reduce overhead.
2016-03-28 14:11:42 +02:00
Bram Moolenaar
ba61ac0d61
patch 7.4.1617
...
Problem: When a JSON message is split it isn't decoded.
Solution: Wait a short time for the rest of the message to arrive.
2016-03-20 16:40:37 +01:00
Bram Moolenaar
1735bc988c
patch 7.4.1559
...
Problem: Passing cookie to a callback is clumsy.
Solution: Change function() to take arguments and return a partial.
2016-03-14 23:05:14 +01:00
Bram Moolenaar
2588b5a43f
patch 7.4.1498
...
Problem: Error for locked item when using json_decode(). (Shougo)
Solution: Initialize v_lock.
2016-03-05 23:23:02 +01:00
Bram Moolenaar
10b369f670
patch 7.4.1467
...
Problem: Can't build without the float feature.
Solution: Add #ifdefs. (Nick Owens, closes #667 )
2016-02-29 23:12:49 +01:00
Bram Moolenaar
80e7884739
patch 7.4.1446
...
Problem: Crash when using json_decode().
Solution: Terminate string with a NUL byte.
2016-02-28 15:21:13 +01:00
Bram Moolenaar
b362872837
patch 7.4.1445
...
Problem: Memory corruption when 'encoding' is not utf-8.
Solution: Convert decoded string later.
2016-02-28 14:56:39 +01:00
Bram Moolenaar
0f526f5652
patch 7.4.1444
...
Problem: Can't build with JSON but without multi-byte.
Solution: Fix pointer name.
2016-02-27 22:59:41 +01:00
Bram Moolenaar
fefecb0fbe
patch 7.4.1440
...
Problem: Can't build on Windows.
Solution: Change #ifdefs. Only define isnan when used.
2016-02-27 21:27:20 +01:00
Bram Moolenaar
f97ddbeb25
patch 7.4.1439
...
Problem: Using uninitialzed variable.
Solution: Initialize vc_type.
2016-02-27 21:13:38 +01:00
Bram Moolenaar
136f29a91d
patch 7.4.1437
...
Problem: Old system doesn't have isinf() and NAN. (Ben Fritz)
Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with
configure. Use a replacement when missing. (Kazunobu Kuriyama)
2016-02-27 20:14:15 +01:00
Bram Moolenaar
b6ff81188d
patch 7.4.1434
...
Problem: JSON encoding doesn't hanel surrogate pair.
Solution: Improve multi-byte handling of JSON. (Yasuhiro Matsumoto)
2016-02-27 18:41:27 +01:00
Bram Moolenaar
7ce686c990
patch 7.4.1430
...
Problem: When encoding JSON, turning NaN and Infinity into null without
giving an error is not useful.
Solution: Pass NaN and Infinity on. If the receiver can't handle them it
will generate the error.
2016-02-27 16:33:22 +01:00
Bram Moolenaar
3ea0f1ae31
patch 7.4.1408
...
Problem: MS-Windows doesn't have isnan() and isinf().
Solution: Use _isnan() and _isinf().
2016-02-23 22:07:32 +01:00
Bram Moolenaar
f1b6ac7229
patch 7.4.1407
...
Problem: json_encode() does not handle NaN and inf properly. (David
Barnett)
Solution: For JSON turn them into "null". For JS use "NaN" and "Infinity".
Add isnan().
2016-02-23 21:26:43 +01:00
Bram Moolenaar
c6b14f0a83
patch 7.4.1367
...
Problem: Compiler warning for unreachable code.
Solution: Remove a "break". (Danek Duvall)
2016-02-20 15:26:42 +01:00
Bram Moolenaar
7707344dde
patch 7.4.1315
...
Problem: Using a channel handle does not allow for freeing it when unused.
Solution: Add the Channel variable type.
2016-02-13 23:23:53 +01:00
Bram Moolenaar
595e64e259
patch 7.4.1279
...
Problem: jsonencode() is not producing strict JSON.
Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode()
strict.
2016-02-07 19:19:53 +01:00
Bram Moolenaar
55fab439a6
patch 7.4.1278
...
Problem: When jsonencode() fails it still returns something.
Solution: Return an empty string on failure.
2016-02-07 16:53:13 +01:00
Bram Moolenaar
4f8b8faec3
patch 7.4.1269
...
Problem: Encoding {'key':} to JSON doesn't give an error (Tyru)
Solution: Give an error.
2016-02-06 18:42:07 +01:00
Bram Moolenaar
4b6a6dcbe7
patch 7.4.1261
...
Problem: Pending channel messages are garbage collected. Leaking memory in
ch_sendexpr(). Leaking memory for a decoded JSON string.
Solution: Mark the message list as used. Free the encoded JSON. Don't save
the JSON string.
2016-02-04 22:49:49 +01:00
Bram Moolenaar
fbf9c6b6c3
patch 7.4.1243
...
Problem: Compiler warning for uninitialized variable.
Solution: Initialize it. (Elias Diem)
2016-02-02 19:43:57 +01:00
Bram Moolenaar
56ead341a7
patch 7.4.1238
...
Problem: Can't handle two messages right after each other.
Solution: Find the end of the JSON. Read more when incomplete. Add a C
test for the JSON decoding.
2016-02-02 18:20:08 +01:00
Bram Moolenaar
19d2f15898
patch 7.4.1231
...
Problem: JSON messages are not parsed properly.
Solution: Queue received messages.
2016-02-01 21:38:19 +01:00
Bram Moolenaar
fb1f62691e
patch 7.4.1229
...
Problem: "eval" and "expr" channel commands don't work yet.
Solution: Implement them. Update the error numbers. Also add "redraw".
2016-01-31 20:24:32 +01:00
Bram Moolenaar
fa06a517b5
patch 7.4.1192
...
Problem: Can't build with FEAT_EVAL but without FEAT_MBYTE. (John
Marriott)
Solution: Add #ifdef for FEAT_MBYTE.
2016-01-28 22:46:58 +01:00
Bram Moolenaar
009d84a34f
patch 7.4.1188
...
Problem: Using older JSON standard.
Solution: Update the link. Adjust the text a bit.
2016-01-28 14:12:00 +01:00
Bram Moolenaar
fcaaae6b3f
patch 7.4.1166
...
Problem: Can't encode a Funcref into JSON. jsonencode() doesn't handle the
same list or dict twice properly. (Nikolay Pavlov)
Solution: Give an error. Reset copyID when the list or dict is finished.
2016-01-24 16:49:11 +01:00
Bram Moolenaar
6039c7f053
patch 7.4.1164
...
Problem: No tests for comparing special variables. Error in jsondecode()
not reported. test_json does not work Japanse system.
Solution: Set scriptencoding. (Ken Takata) Add a few more tests. Add error.
2016-01-24 15:05:32 +01:00