keep key=value pairs in structured fields on the same line if possible.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39320 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-01-29 15:59:56 +00:00
parent 38f5e06269
commit 65d01f12b3
2 changed files with 14 additions and 8 deletions

View file

@ -1,11 +1,18 @@
2016-01-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSMime.m: keep key=value pairs in structured fields
on the same line if possible.
2016-01-29 Niels Grewe <niels.grewe@halbordnung.de>
* Source/NSThread.m: Automatic 'late' unregistration of thread objects: When
+exit is not called, we no longer log a warning and leak the thread object.
Instead, we add it to a map table, keyed under the current thread ID, and
use that in GSCurrentThread() to find the correct NSThread object if
pthread_getspecific wont return it to us.
* Tests/base/NSThread/late_unregister.m: Test case for late unregistration.
* Source/NSThread.m: Automatic 'late' unregistration of thread objects:
When +exit is not called, we no longer log a warning and leak the
thread object.
Instead, we add it to a map table, keyed under the current thread ID,
and use that in GSCurrentThread() to find the correct NSThread object
if pthread_getspecific wont return it to us.
* Tests/base/NSThread/late_unregister.m: Test case for late
unregistration.
2016-01-21 Niels Grewe <niels.grewe@halbordnung.de>
@ -19,7 +26,6 @@
2016-01-21 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: Fix errors in conversion from a constant utf-8
string containing non-ascii characters to latin1 encoded data.
* Source/Additions/GSMime.m: Change line folding code to preserve

View file

@ -4311,7 +4311,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
/* Crude heuristic ... if the length of the value will definitely be
* too long to fit on a line, fold right now.
*/
if (fold > 0 && offset + [v length] > fold)
if (fold > 0 && offset + vLength > fold)
{
[md appendBytes: "\r\n " length: 3];
offset = 1;