When writing the temporary file to use for highlighting, use NSUTF8StringEncoding...
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Feb 2009 15:49:03 +0000 (10:49 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 15 Feb 2009 15:49:03 +0000 (10:49 -0500)
* Source/BSSourceView.m:
(setString:asFile:)

CHANGES
Source/BSSourceView.m

diff --git a/CHANGES b/CHANGES
index d69cf2ff0439ccfa6f9f816414b2753189b7618a..584e055e2687ce4c229a0b16323c790588f739e2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,13 @@
 MacGDBp                                                               CHANGE LOG
 ================================================================================
 
-1.2.0
+1.2.1
+#####################
+- Fix: The temporary file used for highlighting source code is now saved as UTF8
+so files with non-ASCII characters will now be highlighted
+
+
+1.2
 #####################
 - Change: The "File" column now shows the tail rather than the head of the
 value, allowing you to see the last part of the path URI
index 3b87a1d4c2a69cbf6559277f5708229056343a2f..a18f119ae27072a09da87ba0c6be80c6ffd56743 100644 (file)
        // create the temp file
        NSError *error = nil;
        NSString *tmpPath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"MacGDBpHighlighter"];
-       [source writeToFile:tmpPath atomically:NO encoding:NSASCIIStringEncoding error:&error];
+       [source writeToFile:tmpPath atomically:NO encoding:NSUTF8StringEncoding error:&error];
        if (error)
        {
                [textView setString:source];