another system specific tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-06-02 06:54:23 +00:00
parent 1d8d141af9
commit 635bd46437
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-06-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTimeZone.m: Allow for quotes around zone name in
/etc/sysconfig/time on redhat/centos.
2011-06-01 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTimeZone.m: Disable use of tzname on FreeBSD as it's not

View file

@ -1527,6 +1527,15 @@ static NSMapTable *absolutes = 0;
{
s = [s substringFromIndex: 1];
s = [s stringByTrimmingSpaces];
if ([s hasPrefix: @"\""])
{
s = [s substringFromIndex: 1];
}
if ([s hasSuffix: @"\""])
{
s = [s substringToIndex: [s length] - 1];
}
s = [s stringByTrimmingSpaces];
if ([s length] > 0)
{
localZoneSource = _(@"/etc/sysconfig/clock file");