rfm
241e2a47ca
locking updates (fine grained locking rather than global lock)
2024-05-30 10:40:52 +01:00
Gregory John Casamento
753c907938
Fix address for FSF and License name in all headers in base
2019-12-09 18:36:00 -05:00
fredkiefer
7c68c30928
Protect against GSPrivateNativeCStringEncoding() corrupting the return
...
value of setlocale(). Bug #52331 reported by Jakub Wilk <jwilk@jwilk.net>.
2017-11-04 23:53:12 +01:00
Richard Frith-MacDonald
066fb2558a
msys2 64bit tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39931 72102866-910b-0410-8b05-ffd578937521
2016-06-27 18:04:30 +00:00
Richard Frith-MacDonald
ed09c55959
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
Ivan Vučica
b2129096ab
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
Fred Kiefer
fd8ffb6e42
* 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
Eric Wasylishen
4db79e6fef
* 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
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
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
Fred Kiefer
866c1dfcb4
* 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
Richard Frith-MacDonald
9831216043
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
Richard Frith-MacDonald
27550994ee
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
Richard Frith-MacDonald
7cc69dfaae
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
Richard Frith-MacDonald
49dd10cc29
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
Richard Frith-MacDonald
b2b14398d2
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
Richard Frith-MacDonald
ec0b3ab41a
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
Richard Frith-MacDonald
34dfd629f6
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
Richard Frith-MacDonald
d6cfc0e91c
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
Richard Frith-MacDonald
62559023b9
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
Richard Frith-MacDonald
61c2e1b560
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
Richard Frith-MacDonald
9feda6fdf4
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
Richard Frith-MacDonald
bad585bb00
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
Richard Frith-MacDonald
eae859d1c7
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
Adam Fedor
fcc13ccd0f
* 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
Richard Frith-Macdonald
2a9f4ec7c0
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
Richard Frith-Macdonald
db7b22a4fb
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
Richard Frith-Macdonald
d08e9b2f90
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
David Ayers
ac30183cd6
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
Adam Fedor
d228cba99b
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
Adam Fedor
9ca631d7e0
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
Richard Frith-Macdonald
2517c185e1
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
Adam Fedor
52bf284361
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
Adam Fedor
3a835d9182
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
Richard Frith-Macdonald
a3fe00f974
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
Adam Fedor
e816cc9d41
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
Richard Frith-Macdonald
5be36e089c
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
Richard Frith-Macdonald
8d79b94cc1
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
Richard Frith-Macdonald
87c9d2e2e5
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 Frith-MacDonald
80bb956109
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 Frith-MacDonald
7e6f7b8723
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 Frith-MacDonald
5dd39e535d
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 Frith-MacDonald
000d0cc4e6
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
Adam Fedor
151e20dbad
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
Adam Fedor
4a05253a48
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
Adam Fedor
25e9904876
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