summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 19:22:56 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 19:22:56 (GMT)
commit451e82439dee0bb9b9408ad39409edf594f0a93b (patch)
tree67dc1cbc42e65a84f3e4a2b20de5605797bd37aa
parent59beec326a4721154a952027cb34c3e2e4612e28 (diff)
downloadcpython-451e82439dee0bb9b9408ad39409edf594f0a93b.zip
cpython-451e82439dee0bb9b9408ad39409edf594f0a93b.tar.gz
cpython-451e82439dee0bb9b9408ad39409edf594f0a93b.tar.bz2
Remove usage of the deprecated '-cString' and '+stringWithCString:' API's
in PythonLauncher, replacing them with the correct counterparts.
-rwxr-xr-xMac/PythonLauncher/FileSettings.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/PythonLauncher/FileSettings.m b/Mac/PythonLauncher/FileSettings.m
index 1f3695e..66b4fdc 100755
--- a/Mac/PythonLauncher/FileSettings.m
+++ b/Mac/PythonLauncher/FileSettings.m
@@ -267,14 +267,14 @@
[script length]-[[script lastPathComponent] length]];
if (honourhashbang &&
- (fp=fopen([script cString], "r")) &&
+ (fp=fopen([script fileSystemRepresentation], "r")) &&
fgets(hashbangbuf, sizeof(hashbangbuf), fp) &&
strncmp(hashbangbuf, "#!", 2) == 0 &&
(p=strchr(hashbangbuf, '\n'))) {
*p = '\0';
p = hashbangbuf + 2;
while (*p == ' ') p++;
- cur_interp = [NSString stringWithCString: p];
+ cur_interp = [NSString stringWithUTF8String: p];
}
if (!cur_interp)
cur_interp = interpreter;