From b28e046d946283aff5b766fcc4e636d0ec1ddda7 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 7 Jan 2010 19:24:46 +0000 Subject: [PATCH] See ChangeLog. Monotone-Parent: 82d384b289434f966b52082261ffc04d26143abc Monotone-Revision: 0a5ce5307756135e2de40ddd71c96dce6f3f4e52 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-01-07T19:24:46 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ SoObjects/SOGo/NSString+Utilities.m | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2343860e8..800371d9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-07 Francis Lachapelle + + * SoObjects/SOGo/NSString+Utilities.m (-asCSSIdentifier): replaced + %lc by %C. + (-fromCSSIdentifier): idem. + 2010-01-07 Wolfgang Sourdeau * SoObjects/SOGo/NSDictionary+BSJSONAdditions.m diff --git a/SoObjects/SOGo/NSString+Utilities.m b/SoObjects/SOGo/NSString+Utilities.m index 5982fdb3f..ae4bbe2b9 100644 --- a/SoObjects/SOGo/NSString+Utilities.m +++ b/SoObjects/SOGo/NSString+Utilities.m @@ -360,7 +360,7 @@ static int cssEscapingCount = 0; if (idx > -1) [cssIdentifier appendString: cssEscapingStrings[idx]]; else - [cssIdentifier appendFormat: @"%lc", currentChar]; + [cssIdentifier appendFormat: @"%C", currentChar]; } return cssIdentifier; @@ -401,11 +401,11 @@ static int cssEscapingCount = 0; idx = [self _cssStringIndex: currentString]; if (idx > -1) { - [newString appendFormat: @"%lc", cssEscapingCharacters[idx]]; + [newString appendFormat: @"%C", cssEscapingCharacters[idx]]; count += [cssEscapingStrings[idx] length] - 1; } else - [newString appendFormat: @"%lc", [self characterAtIndex: count]]; + [newString appendFormat: @"%C", [self characterAtIndex: count]]; } currentString = [self substringFromRange: NSMakeRange (count, max - count)]; [newString appendString: currentString];