[MacPorts] #18895: spidermonkey: UTF-8 Support
MacPorts
noreply at macports.org
Tue Mar 31 15:25:48 PDT 2009
#18895: spidermonkey: UTF-8 Support
-------------------------------------+--------------------------------------
Reporter: ruediger@… | Owner: macsforever2000@…
Type: defect | Status: closed
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Resolution: fixed | Keywords: javascript, utf8, spidermonkey, flusspferd
Port: spidermonkey |
-------------------------------------+--------------------------------------
Comment(by ruediger@…):
Sorry the Patch doesn't seem to work. You can check if spidermonkey
supports UTF-8 with the following Code
{{{
#include <js/jsapi.h>
#include <stdio.h>
int main() {
if(JS_CStringsAreUTF8())
puts("Spidermonkey supports UTF8");
else
puts("no UTF8 support");
}
}}}
gcc -pedantic -Wall -W -std=c99 -g3 testutf8.c -I/opt/local/include
-L/opt/local/lib -ljs -DXP_UNIX
Maybe a better way would be to add the -DJS_C_STRINGS_ARE_UTF8 to the
OS_CFLAGS on line 13 in source:trunk/dports/lang/spidermonkey/files/patch-
config-Darwin.mk (if the patch is still applied)
Building Spidermonkey can be quite a pain in the ass :(.
--
Ticket URL: <http://trac.macports.org/ticket/18895#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list