Skip Menu |
 

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 48702
Status: new
Priority: 0/
Queue: JavaScript

People
Owner: Nobody in particular
Requestors: HDM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.12
Fixed in: (no value)

Attachments
0001-Correct-ifdef-test-for-UTF-8-strings.patch



Subject: Broken #ifdef in PJS_Runtime.c
Download (untitled) / with headers
text/plain 447b
When compiling against spidermonkey installed from MacPorts, I'm being bitten by a bad #ifdef. By default all test fail with: Can't load '/Users/dom/Downloads/JavaScript- 1.12/blib/arch/auto/JavaScript/JavaScript.bundle' for module JavaScript: dlopen(/Users/dom/Downloads/JavaScript-1.12/blib/arch/auto/JavaScript/JavaScript.bundle, 2): Symbol not found: _JS_SetCStringsAreUTF8 The attached patch corrects the ifdef and makes the tests pass.
Subject: 0001-Correct-ifdef-test-for-UTF-8-strings.patch
From bd470e8ad83e70374cd365be9223cf0609a5939d Mon Sep 17 00:00:00 2001 From: Dominic Mitchell <dom@semantico.com> Date: Fri, 14 Aug 2009 11:05:10 +0100 Subject: [PATCH] Correct #ifdef test for UTF-8 strings. --- PJS_Runtime.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/PJS_Runtime.c b/PJS_Runtime.c index 7be6e20..caf7a3a 100644 --- a/PJS_Runtime.c +++ b/PJS_Runtime.c @@ -68,7 +68,7 @@ PJS_CreateRuntime(int maxbytes) { croak("Failed to allocate memoery for PJS_Runtime"); } -#ifdef JS_C_STRINGS_ARE_UTF8 && JS_VERSION >= 180 +#if defined(JS_C_STRINGS_ARE_UTF8) && JS_VERSION >= 180 JS_SetCStringsAreUTF8(); #endif -- 1.6.3.3


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.