[MacPorts] #18895: spidermonkey: UTF-8 Support
#18895: spidermonkey: UTF-8 Support --------------------------------------------------------+------------------- Reporter: ruediger@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: javascript, utf8, spidermonkey, flusspferd | Port: spidermonkey --------------------------------------------------------+------------------- I'm trying to create a macport file for the [http://flusspferd.org Flusspferd JavaScript library] which depends on spidermonkey having UTF-8 support. Unfortunately spidermonkey is build without UTF-8 support and there is no variant to do so. To build spidermonkey with UTF-8 support you have to set DEFINES to -DJS_C_STRINGS_ARE_UTF8 so something along those lines should do it: {{{ variant utf8 description {add UTF-8 support} { build.args-append \ DEFINES=-DJS_C_STRINGS_ARE_UTF8 } }}} -- Ticket URL: <http://trac.macports.org/ticket/18895> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18895: spidermonkey: UTF-8 Support --------------------------------------------------------+------------------- Reporter: ruediger@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: javascript, utf8, spidermonkey, flusspferd | Port: spidermonkey --------------------------------------------------------+------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => akitada@… -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18895: spidermonkey: UTF-8 Support --------------------------------------------------------+------------------- Reporter: ruediger@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: javascript, utf8, spidermonkey, flusspferd | Port: spidermonkey --------------------------------------------------------+------------------- Comment(by macsforever2000@…): Is there any reason not to always build it with UTF-8 support? -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18895: spidermonkey: UTF-8 Support --------------------------------------------------------+------------------- Reporter: ruediger@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: javascript, utf8, spidermonkey, flusspferd | Port: spidermonkey --------------------------------------------------------+------------------- Comment(by ruediger@…):
Is there any reason not to always build it with UTF-8 support?
Non that I could think of. -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18895: spidermonkey: UTF-8 Support --------------------------------------------------------+------------------- Reporter: ruediger@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: javascript, utf8, spidermonkey, flusspferd | Port: spidermonkey --------------------------------------------------------+------------------- Comment(by ruediger@…): Is there any hope on getting this fixed? -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18895: spidermonkey: UTF-8 Support --------------------------------------------------------+------------------- Reporter: ruediger@… | Owner: macsforever2000@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: javascript, utf8, spidermonkey, flusspferd | Port: spidermonkey --------------------------------------------------------+------------------- Changes (by macsforever2000@…): * owner: akitada@… => macsforever2000@… * status: new => assigned Comment: Maintainer timeout. -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 | -------------------------------------+-------------------------------------- Changes (by macsforever2000@…): * status: assigned => closed * resolution: => fixed Comment: Committed revision r48945. -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 macsforever2000@…): To be clear, I added UTF-8 support without a variant. -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#18895: spidermonkey: UTF-8 Support -------------------------------------+-------------------------------------- Reporter: ruediger@… | Owner: macsforever2000@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: | Keywords: javascript, utf8, spidermonkey, flusspferd Port: spidermonkey | -------------------------------------+-------------------------------------- Changes (by macsforever2000@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 | -------------------------------------+-------------------------------------- Changes (by macsforever2000@…): * status: reopened => closed * resolution: => fixed Comment: Committed revision r49070. This works for me. Thanks! -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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@…): Works for me, too. Thank you! -- Ticket URL: <http://trac.macports.org/ticket/18895#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts