From 403fcd8fff5571fb991276bf036c0c58fddbb520 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Wed, 30 Dec 2009 23:52:55 -0800 Subject: [PATCH] Preparing for options fix in Narhwal. Reviewed by me. --- Objective-J/CommonJS/lib/objective-j/compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objective-J/CommonJS/lib/objective-j/compiler.js b/Objective-J/CommonJS/lib/objective-j/compiler.js index b6462a17f..7b8f9edc5 100644 --- a/Objective-J/CommonJS/lib/objective-j/compiler.js +++ b/Objective-J/CommonJS/lib/objective-j/compiler.js @@ -27,7 +27,7 @@ var compressor = null; function sharedCompressor() { if (!compressor) - compressor = OS.popen("java -server -Dfile.encoding=UTF-8 -classpath " + RHINO_PATH + ":" + SHRINKSAFE_PATH + " org.dojotoolkit.shrinksafe.Main"); + compressor = OS.popen("java -server -Dfile.encoding=UTF-8 -classpath " + RHINO_PATH + ":" + SHRINKSAFE_PATH + " org.dojotoolkit.shrinksafe.Main", { charset:"UTF-8" }); return compressor; } @@ -65,7 +65,7 @@ function compileWithResolvedFlags(aFilePath, objjcFlags, gccFlags) else { // GCC preprocess the file. - var gcc = OS.popen("gcc -E -x c -P " + (gccFlags ? gccFlags.join(" ") : "") + " " + OS.enquote(aFilePath)), + var gcc = OS.popen("gcc -E -x c -P " + (gccFlags ? gccFlags.join(" ") : "") + " " + OS.enquote(aFilePath), { charset:"UTF-8" }), chunk = ""; while (chunk = gcc.stdout.read())