Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to load ICU data file on Fedora #65

Open
jeroen opened this issue Jul 20, 2019 · 4 comments
Open

Need to load ICU data file on Fedora #65

jeroen opened this issue Jul 20, 2019 · 4 comments

Comments

@jeroen
Copy link
Owner

jeroen commented Jul 20, 2019

Looks like Fedora 30 version of libv8 now also has a custom ICU so we to do something similar:

V8/src/bindings.cpp

Lines 36 to 40 in 6ac6e34

#ifdef V8_ICU_DATA_PATH
// Needed if V8 is built with bundled ICU. Check CRAN package 'dagitty' to test.
if( access( V8_ICU_DATA_PATH, F_OK ) != -1 ) {
v8::V8::InitializeICUDefaultLocation(V8_ICU_DATA_PATH);
}

Bug report in dagitty: jtextor/dagitty#24

@jtextor
Copy link

jtextor commented Aug 19, 2019

Minimal code example to make V8 crash in R on Fedora 30 without dagitty or other libraries:

V8::new_context()$eval("\"a\".localeCompare(\"b\")")

The same code works for me in nodejs on the same machine:

[root@fedora-2gb-nbg1-1 ~]# node
> "a".localeCompare("b")
-1
> 

@jeroen
Copy link
Owner Author

jeroen commented Aug 19, 2019

Thanks that is very helpful!

@jeroen
Copy link
Owner Author

jeroen commented Sep 28, 2019

Here is the bug report in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1755114

@jeroen
Copy link
Owner Author

jeroen commented Nov 10, 2021

Still a problem if we build against v8-devel in Fedora 34 (but not with DOWNLOAD_STATIC_LIBV8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants