On Sat, May 26, 2018 at 11:03 AM, Joe Smack <messiah2...@gmail.com> wrote: > What is the proper way to do this function? I just can't get it to work. > > My code: > const char * exec_path = "C:\\Users\\Joe Smack\\Documents\\Visual Studio > 2017\\Projects\\v8 console test\\v8 console test"; > const char * icu_data_file = "icudtl.dat"; > V8::InitializeICUDefaultLocation(exec_path, icu_data_file); > > This code is giving me an exception in the function InitializeICU (called > from InitializeICUDefaultLocation) when it gets to FILE* inf = > fopen(icu_data_file, "rb"); (line 95) > The debugger says icu_data_file = icudtl.dat > > i copied icudtl.dat to the project directory from v8 directory. Any help is > greatly appreciated.
You can pass nullptr as the second argument and V8 will look for icudtl.dat relative to the executable. If you pass in a file path, it should be either absolute or relative to the current working directory (_not_ the executable.) -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.