Commit graph

429 commits

Author SHA1 Message Date
Wolfgang Lux
4e383e19d0 Fix incorrect unicode escape sequence, use common smiley character 2017-07-10 15:06:13 +02:00
Wolfgang Lux
bc285396da Characters outside the BMP cannot be converted to Latin 1 string encoding 2017-07-10 10:16:27 +02:00
Richard Frith-Macdonald
99a3655108 surrogate pair test 2017-07-06 16:15:51 +01:00
Daniel Ferreira
cbfa4d8cc9 NSProcessInfo: implement getting system uptime
Introduce the systemUptime property to NSProcessInfo, which can compute
platform-independently what is the uptime of the system.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
277ae581a6 NSHTTPCookie: fix bug in Set-Cookie parser
Fix a bug in NSHTTPCookie's Set-Cookie parser where it would fail to
parse more than one key-only cookie (such as "Secure; HTTPOnly;") in a
header.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
644b676949 NSHTTPCookie: add support for HTTPOnly cookies
Add support for parsing HTTPOnly cookies (those that cannot be accessed
by clients). Implement -[NSHTTPCookie isHTTPOnly].
2017-06-29 21:18:16 +01:00
Daniel Ferreira
a9df1b104a NSGeometry: create NSEdgeInsets struct
Create the NSEdgeInsets struct in NSGeometry, introduced in OSX 10.7.
Add helper functions for creating these insets.

This struct is not used in Base. Rather, it is used as part of newer
APIs in GUI.
2017-06-29 21:18:16 +01:00
Richard Frith-Macdonald
24d29934cf Fix directory creation to match actual OSX sematics as determined by adding
a few testcases ...
The basic method should fail if the directory already exists.
The intermediate directories method should fail if the directory exists unless
the option to create intermediate directories is selected, in which case a
pre-existing directory is counted as a success.
2017-06-18 09:13:57 +01:00
Richard Frith-Macdonald
ed721bf4da Fix directory creation to use low level methods which consider the presence
of an existing directory to be an error, rather than the NSFileManager methods
that consider it a success.  The logic of distributed locking requires us to
fail if a directory already exists.
2017-06-17 06:52:05 +01:00
Richard Frith-MacDonald
1f786ad7a8 fixes for #47618
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40462 72102866-910b-0410-8b05-ffd578937521
2017-04-09 12:45:18 +00:00
Richard Frith-MacDonald
85e8bdb20d non-lossy emncoding tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40394 72102866-910b-0410-8b05-ffd578937521
2017-03-17 11:50:05 +00:00
Richard Frith-MacDonald
cc27fb0cb5 Use UTF8String rather than cString
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40393 72102866-910b-0410-8b05-ffd578937521
2017-03-17 09:45:02 +00:00
Richard Frith-MacDonald
c2e3d29282 fix accidental delete
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40391 72102866-910b-0410-8b05-ffd578937521
2017-03-17 09:24:12 +00:00
Richard Frith-MacDonald
80547ce977 fix configure issue on osx
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40390 72102866-910b-0410-8b05-ffd578937521
2017-03-17 09:22:57 +00:00
Wolfgang Lux
e3caba204b Fix a serious misunderstanding of the icu string access API: The value
of nativeIndexingLimit must not exceed the length of the current chunk.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40333 72102866-910b-0410-8b05-ffd578937521
2017-02-11 14:24:58 +00:00
Niels Grewe
6509aeb2de Fix handling of incorrect replacement patterns.
The error code from trying to apply a replacement pattern was not checked,
resulting in a crash inside libicu. This also fixes a few memory leaks
(replacement string objects not correctly autoreleased before returning them
 to the caller).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40142 72102866-910b-0410-8b05-ffd578937521
2016-10-12 13:43:32 +00:00
Niels Grewe
0abb1803ce s/codpepoint/codepoint
Thanks Ivan!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40141 72102866-910b-0410-8b05-ffd578937521
2016-10-11 17:12:31 +00:00
Niels Grewe
aadf76eeb6 Fix testcase for 0xfffe in a string (in initial position it
it is just used to derive the byte-order and then discarded)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40140 72102866-910b-0410-8b05-ffd578937521
2016-10-11 12:35:29 +00:00
Niels Grewe
f9540e172e Improve support for loading encrypted private keys
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40139 72102866-910b-0410-8b05-ffd578937521
2016-10-11 11:59:04 +00:00
Richard Frith-MacDonald
63bd893d1e more characters
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40109 72102866-910b-0410-8b05-ffd578937521
2016-09-26 11:11:05 +00:00
Richard Frith-MacDonald
dbc9328a61 add fffd and ffff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40108 72102866-910b-0410-8b05-ffd578937521
2016-09-26 11:04:51 +00:00
Richard Frith-MacDonald
34bcd16ed3 test for unicode noncharacter codepoint
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40107 72102866-910b-0410-8b05-ffd578937521
2016-09-26 10:59:02 +00:00
Niels Grewe
b1c979898d Fix detection of the charset in XML data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40090 72102866-910b-0410-8b05-ffd578937521
2016-09-19 15:56:51 +00:00
Niels Grewe
f5641389f0 Test case for extracting charset from xml string data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40089 72102866-910b-0410-8b05-ffd578937521
2016-09-19 15:51:48 +00:00
Richard Frith-MacDonald
85b02833b1 scanHexLongLong inspider by Abbas Raza
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40070 72102866-910b-0410-8b05-ffd578937521
2016-09-06 07:57:17 +00:00
Richard Frith-MacDonald
ead1505a3c Fix typo causing preamature termination of long headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40065 72102866-910b-0410-8b05-ffd578937521
2016-08-28 09:53:38 +00:00
Richard Frith-MacDonald
33ed35331b Various configure/build tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40062 72102866-910b-0410-8b05-ffd578937521
2016-08-19 12:20:24 +00:00
Richard Frith-MacDonald
2615582d7c Fixup for newer ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40057 72102866-910b-0410-8b05-ffd578937521
2016-08-09 07:00:36 +00:00
Richard Frith-MacDonald
a6bce78c64 First attempt at GSMimeSerializer for more controlled serialisation of
documents so we can choose between a form suitable for old SMTP MTAs, or
for modern binary-safe transports.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40049 72102866-910b-0410-8b05-ffd578937521
2016-08-03 09:24:53 +00:00
Niels Grewe
ad428b99d5 Fix -getObjects:andKeys:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40036 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:24:56 +00:00
Niels Grewe
c2be055c3e Add [NSData initWithBytesNoCopy:length:deallocator:]
This new initializer allows customising the deallocation behaviour
through user-supplied blocks. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40035 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:01:11 +00:00
Richard Frith-MacDonald
9188a050ef fix for bug #47926
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40007 72102866-910b-0410-8b05-ffd578937521
2016-07-18 09:51:35 +00:00
Richard Frith-MacDonald
ab5285aaab fixups for run loop handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39989 72102866-910b-0410-8b05-ffd578937521
2016-07-12 17:54:40 +00:00
Richard Frith-MacDonald
788c9aa7e2 run loops for half a second
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39988 72102866-910b-0410-8b05-ffd578937521
2016-07-12 17:37:32 +00:00
Richard Frith-MacDonald
bd106b0bd0 fixup wait for connection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39987 72102866-910b-0410-8b05-ffd578937521
2016-07-12 16:25:49 +00:00
Richard Frith-MacDonald
16925d77b3 invlidate timer when no longer used
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39982 72102866-910b-0410-8b05-ffd578937521
2016-07-12 11:15:43 +00:00
Richard Frith-MacDonald
103bf4cf97 check runMode:beforeDate:afor nil date
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39981 72102866-910b-0410-8b05-ffd578937521
2016-07-12 11:12:32 +00:00
Richard Frith-MacDonald
b4d30c2830 make sure the loop has an input source
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39980 72102866-910b-0410-8b05-ffd578937521
2016-07-12 11:06:43 +00:00
Richard Frith-MacDonald
8304096497 add tests for timer firing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39979 72102866-910b-0410-8b05-ffd578937521
2016-07-12 10:50:50 +00:00
Niels Grewe
dfe7feebf2 Test case for the [NSRegularExpression pattern] bug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39961 72102866-910b-0410-8b05-ffd578937521
2016-07-06 14:59:08 +00:00
Richard Frith-MacDonald
69d6cfa99d Some testcase reliability improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39957 72102866-910b-0410-8b05-ffd578937521
2016-07-01 15:22:35 +00:00
Niels Grewe
b0e4faac68 Test framework loading as well (we recently had a fault there)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39954 72102866-910b-0410-8b05-ffd578937521
2016-07-01 11:08:54 +00:00
Richard Frith-MacDonald
4a2081691d test for home directory of non-existent user
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39927 72102866-910b-0410-8b05-ffd578937521
2016-06-27 06:39:31 +00:00
Richard Frith-MacDonald
96d39e79bc If we don't have a home directory, we can't expand a '~' in a path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39926 72102866-910b-0410-8b05-ffd578937521
2016-06-26 12:04:23 +00:00
Richard Frith-MacDonald
04406427e3 Add newere method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39924 72102866-910b-0410-8b05-ffd578937521
2016-06-26 05:56:10 +00:00
Richard Frith-MacDonald
35962654cb one more hope.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39923 72102866-910b-0410-8b05-ffd578937521
2016-06-25 19:25:14 +00:00
Richard Frith-MacDonald
d9d4cd2982 fix test to use consistent time zone (GMT)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39921 72102866-910b-0410-8b05-ffd578937521
2016-06-25 18:33:55 +00:00
Richard Frith-MacDonald
b07fe2eb2b Fix uninitialised variables
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39906 72102866-910b-0410-8b05-ffd578937521
2016-06-22 14:14:05 +00:00
Richard Frith-MacDonald
8b4923c76e fix 64bit error in method type declarations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39903 72102866-910b-0410-8b05-ffd578937521
2016-06-22 09:43:00 +00:00
Richard Frith-MacDonald
0c7237ec08 s390x portability fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39901 72102866-910b-0410-8b05-ffd578937521
2016-06-22 07:54:16 +00:00