Commit graph

8960 commits

Author SHA1 Message Date
Richard Frith-MacDonald
fcfaac4931 minor string fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33966 72102866-910b-0410-8b05-ffd578937521
2011-10-11 21:16:28 +00:00
Niels Grewe
857d32b33d In -[GSMimeParser scanToken:] return @"" instead of nil when parsing an empty
quoted string.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33952 72102866-910b-0410-8b05-ffd578937521
2011-10-08 17:53:17 +00:00
Richard Frith-MacDonald
364fb1ec98 networking portability for for solaris
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33951 72102866-910b-0410-8b05-ffd578937521
2011-10-08 16:29:19 +00:00
Richard Frith-MacDonald
5021629c2b small tweak for lowering resource usage during very heavy use of outgoing
connections.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33950 72102866-910b-0410-8b05-ffd578937521
2011-10-07 15:15:05 +00:00
Richard Frith-MacDonald
f7280475ff fix to reture respnse for synchronous request.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33949 72102866-910b-0410-8b05-ffd578937521
2011-10-07 09:17:14 +00:00
Richard Frith-MacDonald
aae4782eb3 Make the use of nil for a file URL path raise an invalid argument exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33939 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:40:29 +00:00
Richard Frith-MacDonald
49c91de79d another nil arg test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33938 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:33:40 +00:00
Richard Frith-MacDonald
4335b7e995 another nil arg check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33937 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:15:51 +00:00
Richard Frith-MacDonald
4000d7891e test for exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33936 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:05:03 +00:00
Fred Kiefer
41298e5ec4 * Source/NSPropertyList.m (GSBinaryPLParser -objectAtIndex:):
Use long long for all integer types. Before we used signed types
which resulted wrong values for negative integers.
* Source/NSKeyedUnarchiver.m (-_decodeObject:): Handle the
string "$null" as nil all the times.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33934 72102866-910b-0410-8b05-ffd578937521
2011-10-03 19:48:30 +00:00
Richard Frith-MacDonald
afc6974925 Provisional IPv6 support added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33933 72102866-910b-0410-8b05-ffd578937521
2011-10-03 16:03:19 +00:00
Fred Kiefer
2a419593ce * Source/NSData.m (-initWithCoder:, -encodeWithCoder): Correct
keyed encoding/decoding.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33932 72102866-910b-0410-8b05-ffd578937521
2011-10-03 13:22:16 +00:00
Richard Frith-MacDonald
cbf54ac301 Add a few OSX compatibility methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33929 72102866-910b-0410-8b05-ffd578937521
2011-10-02 11:17:49 +00:00
Niels Grewe
377a757e54 Started working on NSXMLNode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33927 72102866-910b-0410-8b05-ffd578937521
2011-10-01 18:43:29 +00:00
Niels Grewe
b8ed8cedc2 Add test for child de-/re-attachment behaviour in NSXML.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33920 72102866-910b-0410-8b05-ffd578937521
2011-10-01 00:05:27 +00:00
Richard Frith-MacDonald
d8432fad48 Minor fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33916 72102866-910b-0410-8b05-ffd578937521
2011-09-30 20:31:15 +00:00
Eric Wasylishen
7d457ce4cc * Source/NSUserDefaults.m:
- Refactoring of the code to read the system language list
  into a separate function, systemLanguages().
- Add support for the LANGUAGE environment variable, a GNU extension.
  It holds a colon-separated list of locales, and is intended to let
  the user specify a list of their preferred languages in order.
  For example, the language settings GUI in Ubuntu modifies the
  LANGUAGE variable.

  More info here:
  http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable
- When populating NSLanguages, "expand" locales into a list of
  related variants, formed by stripping off region suffixes. This
  ensures that if a user's environment is set to a regional version
  of a language (say CanadaFrench) but an application is only
  traslated into French, the plain French translation will still be used.

  e.g. if the system locales are {fr_CA, en_CA}, expand the list to
  {fr_CA, fr, en_CA, en}.
* Headers/GNUstepBase/GSLocale.h:
* Source/GSLocale.m:
New functions GSLocaleVariants and GSLanguagesFromLocale


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33910 72102866-910b-0410-8b05-ffd578937521
2011-09-29 19:00:46 +00:00
Gregory John Casamento
f0c2282319 Shorten the error message here. Move the bulk of the explaination into README.initialize in the Documentation folder.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33909 72102866-910b-0410-8b05-ffd578937521
2011-09-29 17:04:13 +00:00
Niels Grewe
ab9ae99954 Add some initial tests for NSXMLNode (will only pass on OS X, marked testHopeful for now).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33903 72102866-910b-0410-8b05-ffd578937521
2011-09-28 18:10:18 +00:00
Richard Frith-MacDonald
ea1bb05cb5 Bump version and set required gcc to 4.0.0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33860 72102866-910b-0410-8b05-ffd578937521
2011-09-19 09:09:57 +00:00
Richard Frith-MacDonald
5c8e3b7fac Version 1.23.0 release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33856 72102866-910b-0410-8b05-ffd578937521
2011-09-18 21:21:14 +00:00
Richard Frith-MacDonald
c3a395db37 Add test for +initialize being called whether or not it's implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33844 72102866-910b-0410-8b05-ffd578937521
2011-09-16 08:33:05 +00:00
Richard Frith-MacDonald
9e8187eebf Fixup to get correct type information when handling an incoming message as
suggested by Fred.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33832 72102866-910b-0410-8b05-ffd578937521
2011-09-12 16:03:07 +00:00
Richard Frith-MacDonald
4baaff38cb Attempt workaround for runtime providing insufficient information in callback.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33814 72102866-910b-0410-8b05-ffd578937521
2011-09-07 09:42:50 +00:00
Richard Frith-MacDonald
fcf071b0b7 fix bug #34154
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33792 72102866-910b-0410-8b05-ffd578937521
2011-08-27 16:46:26 +00:00
Richard Frith-MacDonald
03c0773da1 build on apple
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33791 72102866-910b-0410-8b05-ffd578937521
2011-08-26 11:21:32 +00:00
Richard Frith-MacDonald
35e02db554 tweaks for apple compiler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33790 72102866-910b-0410-8b05-ffd578937521
2011-08-26 11:15:35 +00:00
Richard Frith-MacDonald
4b21a9d8a8 fixup to work with apple runtime.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33789 72102866-910b-0410-8b05-ffd578937521
2011-08-26 11:09:40 +00:00
Fred Kiefer
fbd9fb9855 iUse SKIP correctly by providing a test set around it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33785 72102866-910b-0410-8b05-ffd578937521
2011-08-25 09:07:41 +00:00
Fred Kiefer
fb48d7ab4d Don't run the initialize test if we cannot stop it with a signal.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33784 72102866-910b-0410-8b05-ffd578937521
2011-08-25 09:00:41 +00:00
Fred Kiefer
04e6ab22d9 Make test usable on MinGW
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33783 72102866-910b-0410-8b05-ffd578937521
2011-08-25 08:46:31 +00:00
Fred Kiefer
8da720fc7a * Source/NSObject.m (__builtin_offsetof): Add workaround for build in missing
in old versions of gcc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33774 72102866-910b-0410-8b05-ffd578937521
2011-08-22 11:02:10 +00:00
Fred Kiefer
80c8a7ff06 Temporary revert David's change to use PRIxPTR, PRIuPTR and
PRIdPTR. Old compilers don't handled these well. (That change
didn't have a ChangeLog entry)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33766 72102866-910b-0410-8b05-ffd578937521
2011-08-20 13:05:37 +00:00
Fred Kiefer
028ad4a59c * Source/Additions/GSMime.m: Use specific IMP type for method
returning BOOL value.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33763 72102866-910b-0410-8b05-ffd578937521
2011-08-17 17:45:10 +00:00
Niels Grewe
2bc519b3c2 Include stdlib.h for the prototype of calloc().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33760 72102866-910b-0410-8b05-ffd578937521
2011-08-17 11:46:06 +00:00
Riccardo Mottola
ff93804152 Additional cast to void* to keep OpenBSD compiler happy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33757 72102866-910b-0410-8b05-ffd578937521
2011-08-16 22:14:36 +00:00
David Chisnall
4cdea64975 Make -base compile almost without warnings again. Fixes:
- Using the correct format specifier
- Remove substringFromRange: (GNUstep extension) from NSString.h and use the non-deprecated version in -base.
- Delete definitions of methods that are the same in both a class and a category on that class (NSArray and NSObject).

Two files still have warnings:

- The GNUTLS stuff is using a load of deprecated APIs.
- xmlparse.m replaces a method using a category.  This method seems to always return nil.  Not sure what it's meant to do, or why it isn't a delegate of some kind.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33756 72102866-910b-0410-8b05-ffd578937521
2011-08-16 16:04:43 +00:00
David Chisnall
ca12a84e3f Use the word-size-agnostic printf specifier.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33755 72102866-910b-0410-8b05-ffd578937521
2011-08-16 14:47:35 +00:00
Richard Frith-MacDonald
6dae192890 fix detection of excess data at end of multipart docs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33738 72102866-910b-0410-8b05-ffd578937521
2011-08-15 08:59:52 +00:00
Richard Frith-MacDonald
9331172345 improve mime tests for excess data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33737 72102866-910b-0410-8b05-ffd578937521
2011-08-15 08:59:24 +00:00
Richard Frith-MacDonald
1f86f92794 redo/correct last fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33736 72102866-910b-0410-8b05-ffd578937521
2011-08-15 06:16:51 +00:00
Richard Frith-MacDonald
2c508306bd revert attepted bugfix ...needs more testing debugging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33735 72102866-910b-0410-8b05-ffd578937521
2011-08-14 20:49:16 +00:00
Richard Frith-MacDonald
de099615e8 tweak parsing end of headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33734 72102866-910b-0410-8b05-ffd578937521
2011-08-14 18:38:13 +00:00
David Chisnall
bfd034b5b6 #ifdef -> #if
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33732 72102866-910b-0410-8b05-ffd578937521
2011-08-14 08:49:33 +00:00
David Chisnall
15fad579c9 Fix the test on 64-bit (am I the first person to run this test on LP64?). NSTemporaryDirectory was not declared, so its return type was int, and so the object pointer was truncated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33730 72102866-910b-0410-8b05-ffd578937521
2011-08-13 18:32:10 +00:00
David Chisnall
96f4e21ac8 Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33725 72102866-910b-0410-8b05-ffd578937521
2011-08-13 15:29:29 +00:00
David Chisnall
433554830d Fix the build with the pure non-fragile ABI by declaring macros before using them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33724 72102866-910b-0410-8b05-ffd578937521
2011-08-13 15:28:22 +00:00
David Chisnall
e083d966a4 And the same fix again...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33723 72102866-910b-0410-8b05-ffd578937521
2011-08-13 13:31:50 +00:00
David Chisnall
2a81dad9f8 Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33722 72102866-910b-0410-8b05-ffd578937521
2011-08-13 13:29:24 +00:00
David Chisnall
0cac328205 Don't assume Object exists in libobjc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33721 72102866-910b-0410-8b05-ffd578937521
2011-08-13 13:28:55 +00:00