Commit graph

42 commits

Author SHA1 Message Date
rfm
1483924463 leak detection improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37003 72102866-910b-0410-8b05-ffd578937521
2013-08-22 15:44:54 +00:00
ivucica
0902237bc3 Added check for whether there is any useful information in
struct lconv. Android doesn't have anything there, despite
having locale.h, so it makes little sense to try to access
the nonexistent fields in GSLocale.m



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36632 72102866-910b-0410-8b05-ffd578937521
2013-05-16 08:44:53 +00:00
fredkiefer
311cfb5b8c * Source/GSLocale.m (GSDefaultLanguageLocale): Add missing check
for LC_MESSAGES definition.
This broke compilation on Windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34867 72102866-910b-0410-8b05-ffd578937521
2012-03-02 21:38:41 +00:00
ericwa
e8bc5d9a5f * Source/GSLocale.m:
- Deprecate GSSetLocale and GSSetLocaleC; they now do nothing
   but print a warning.
 - Introduce GSDefaultLanguageLocale(), which is a
   substitute for GSSetLocale(LC_MESSAGES, nil), which just returns the
   current setting of LC_MESSAGES.
* Source/NSObject.m (+initialize): Remove GSSetLocaleC call,
which was changing the libc locale.
* Source/NSUserDefaults.m: Use GSDefaultLanguageLocale() instead of
GSSetLocale(LC_MESSAGES, nil)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34841 72102866-910b-0410-8b05-ffd578937521
2012-02-28 06:20:53 +00:00
ericwa
6352d91406 * 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
theraven
5568644a5e 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
fredkiefer
3719351613 * Source/GSLocale.m (GSLanguageFromLocale): Handle local "C.UTF-8"
correctly. Needed for Cygwin.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33516 72102866-910b-0410-8b05-ffd578937521
2011-07-11 11:55:35 +00:00
rfm
8b2ffba3d9 Start stuff for handling cleanup on process exit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33344 72102866-910b-0410-8b05-ffd578937521
2011-06-19 09:26:03 +00:00
rfm
21e22ecfb0 use the _() macro for localisation within base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32173 72102866-910b-0410-8b05-ffd578937521
2011-02-15 06:25:54 +00:00
rfm
d605c6f7b5 Simplify header inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29669 72102866-910b-0410-8b05-ffd578937521
2010-02-19 08:12:46 +00:00
rfm
1460f239ce locale fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28756 72102866-910b-0410-8b05-ffd578937521
2009-09-30 20:44:41 +00:00
rfm
e0711a3b8d allow developers more time to adapt to LGPLv3
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26606 72102866-910b-0410-8b05-ffd578937521
2008-06-08 10:38:33 +00:00
rfm
f1d83b9f14 MacOS-X compatibility updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26598 72102866-910b-0410-8b05-ffd578937521
2008-06-06 13:57:06 +00:00
rfm
ab9404b6a3 Minor thread safety fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25774 72102866-910b-0410-8b05-ffd578937521
2007-12-21 14:37:37 +00:00
rfm
3aa7189ddb Improve MacOS-X compatibility of headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25638 72102866-910b-0410-8b05-ffd578937521
2007-11-29 20:53:26 +00:00
rfm
cd46236028 Update to GPL3 and LGPL3
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25482 72102866-910b-0410-8b05-ffd578937521
2007-09-14 11:36:11 +00:00
rfm
3f7e68d6fc header fixups for macosx porting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24960 72102866-910b-0410-8b05-ffd578937521
2007-04-01 11:12:12 +00:00
rfm
2aa7b2026c Improve native locale integration and mswindows usability.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24871 72102866-910b-0410-8b05-ffd578937521
2007-03-14 16:04:13 +00:00
rfm
96f25438e5 Use default c-string encoding for loading other locale info.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24859 72102866-910b-0410-8b05-ffd578937521
2007-03-13 12:20:45 +00:00
rfm
31342aef09 Updates to reduce global namespace pollution. Plenty more remaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23795 72102866-910b-0410-8b05-ffd578937521
2006-10-09 14:00:01 +00:00
fedor
376e495dad * Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21245 72102866-910b-0410-8b05-ffd578937521
2005-05-22 03:32:16 +00:00
CaS
813f640a49 Apply modified patch to support windows native event handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20785 72102866-910b-0410-8b05-ffd578937521
2005-02-23 16:05:09 +00:00
CaS
0708409c1b Tidy up use of white space so we have it after if/for/while and not after (
or before ) or padding at end of line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20773 72102866-910b-0410-8b05-ffd578937521
2005-02-22 11:22:44 +00:00
CaS
c7b5b71690 Minor locale patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19746 72102866-910b-0410-8b05-ffd578937521
2004-07-18 10:48:19 +00:00
ayers
73dc4cb9f6 Header reorganizsateion - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17407 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:49:32 +00:00
fedor
0e59d4552d Change syntax of includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16874 72102866-910b-0410-8b05-ffd578937521
2003-06-07 01:24:41 +00:00
fedor
32ae9a0f45 Filesystem change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16565 72102866-910b-0410-8b05-ffd578937521
2003-04-28 02:29:49 +00:00
CaS
8834609a23 Hack to disable locales where not supported.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15573 72102866-910b-0410-8b05-ffd578937521
2003-01-09 17:15:40 +00:00
fedor
b996c9bca5 Update def of GSSetLocale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15249 72102866-910b-0410-8b05-ffd578937521
2002-12-05 04:24:43 +00:00
fedor
0662b0c200 Unicode.m: New functions to guess encoding from locale.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14831 72102866-910b-0410-8b05-ffd578937521
2002-10-22 03:22:30 +00:00
CaS
8cb0ce724b double locking fixes by David Ayers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14428 72102866-910b-0410-8b05-ffd578937521
2002-09-10 21:53:34 +00:00
fedor
e3e8e81196 Set only LC_CTYPE locale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13923 72102866-910b-0410-8b05-ffd578937521
2002-06-20 02:41:26 +00:00
CaS
d7e28f6deb Many minor fixes for autogsdoc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11787 72102866-910b-0410-8b05-ffd578937521
2001-12-17 14:31:42 +00:00
CaS
a70dd0619f More localisation fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9733 72102866-910b-0410-8b05-ffd578937521
2001-04-28 05:53:56 +00:00
CaS
0579e4668f Initialise locale early
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9665 72102866-910b-0410-8b05-ffd578937521
2001-04-23 08:55:58 +00:00
richard
4c9c37639c Minor simplification
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9228 72102866-910b-0410-8b05-ffd578937521
2001-02-25 07:08:27 +00:00
richard
a5c52a87fd Fix suggested by Matthias Klose
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9168 72102866-910b-0410-8b05-ffd578937521
2001-02-19 07:24:21 +00:00
richard
924286f53d Minor tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9167 72102866-910b-0410-8b05-ffd578937521
2001-02-19 05:04:20 +00:00
richard
295874f1cf Minor fix and output improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9166 72102866-910b-0410-8b05-ffd578937521
2001-02-19 05:03:09 +00:00
fedor
3c6cd7c298 Put ifdefs around langinfo.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8112 72102866-910b-0410-8b05-ffd578937521
2000-11-14 18:30:31 +00:00
fedor
01fe40bbac Check for lanfinfo, Update DLADDR check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7929 72102866-910b-0410-8b05-ffd578937521
2000-10-30 05:03:28 +00:00
fedor
110cd21262 Add localization/language domain and locale support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7910 72102866-910b-0410-8b05-ffd578937521
2000-10-27 15:54:35 +00:00