Skip to content

Commit

Permalink
- Make sure that correct encoding is used when defining default start…
Browse files Browse the repository at this point in the history
… and end delimiters.

- This change also fixes compiler warnings.
  • Loading branch information
nikita-zhuk committed Jun 4, 2011
1 parent 328a8ba commit 3a20bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MiscMergeTemplate.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ + (NSString *)defaultStartDelimiter
/* This works better for whatever reason. Due to some unknown pecularities,
a constant NSString doesn't work under Windows with Apple's
implementation. */
return [NSString stringWithCString:"«"];
return [NSString stringWithCString:"«" encoding:NSUTF8StringEncoding];
}

/*"
Expand All @@ -87,7 +87,7 @@ + (NSString *)defaultEndDelimiter
// return @")";
// return @"»";
/* This works better than a constant NSString for whatever reason. See above. */
return [NSString stringWithCString:"»"];
return [NSString stringWithCString:"»" encoding:NSUTF8StringEncoding];
}

/*" Creates a new, autoreleased MiscMergeTemplate. "*/
Expand Down

0 comments on commit 3a20bf2

Please sign in to comment.