From ee97a0b044e164f67e662ba31be04e2e18097113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= Date: Tue, 25 Jan 2011 14:58:40 +0100 Subject: [PATCH] Added unicode support when running JS --- echo_test.rb | 2 +- js_runner.erl | 2 +- src/.ggs_server.erl.swo | Bin 12288 -> 12288 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/echo_test.rb b/echo_test.rb index e884391..106635c 100644 --- a/echo_test.rb +++ b/echo_test.rb @@ -15,4 +15,4 @@ while true line = s.gets # Read lines from the socket puts "Got Echo: " + line.chop # And print with platform line terminator end -s.close # Close the socket when done \ No newline at end of file +s.close # Close the socket when done diff --git a/js_runner.erl b/js_runner.erl index f9bb5aa..52878ee 100644 --- a/js_runner.erl +++ b/js_runner.erl @@ -8,4 +8,4 @@ boot() -> executeJS(Port, Data) -> ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>), - js:call(Port, <<"helloworld">>, [Data]). + js:call(Port, <<"helloworld">>, [list_to_binary(Data)]). diff --git a/src/.ggs_server.erl.swo b/src/.ggs_server.erl.swo index bb7307667c4875975b92cf7c453d7f5d3f7deb53..3048659e6c270c2fdc0a8944634561aaeb5b0a7f 100644 GIT binary patch delta 41 tcmZojXh;xCG6?hZRWR2xVgLdG1_s6}cD~2BHi`wRvM2z-=4{oeTmaJe3GV;^ delta 41 vcmZojXh;xCG6?hZRWR2xVgLdG28NJJcD}mY8^r=uS#%T}i#BJgPUQjs(+mnH