I'm trying to use ICU4C on windows. I copied the 2 dlls into the executable directory and a ICU data file. According to what I read in the documentation, I should not need to set a specific data directory (http://userguide.icu-project.org/icudata), but my unit-tests run only when I set the ICU_DATA environment variable. Otherwise U_FILE_ACCESS_ERROR is returned on initialization or creation of converters. Can anyone tell me how to "install" this correctly so that I don't need to set the path?
Asked
Active
Viewed 1,446 times
0
-
1Have you tried using a data DLL instead of a .dat file? – gagolews Feb 26 '14 at 20:34
-
1did you ever figure this out, i think it cannot actually read it without u_setDataDirectory – tofutim Dec 22 '16 at 01:54
-
@gagolews - Do you know how to use the data DLL on Windows? – codesniffer Feb 01 '21 at 08:03
1 Answers
0
is the data dll 'big' or 'small'? ( kilobytes or megabytes ). Maybe it is the stub data dll and the full one is hiding.

Steven R. Loomis
- 4,228
- 28
- 39
-
1I know this is very old now, but I'm running into something very similar. Any idea where the data DLL is in a standard MSVC build? The nearest I can find based on "icudt" and file size is "icudt##l_dat.obj" which is 24MB for me (ICU57). – codesniffer Feb 01 '21 at 08:26
-
1@codesniffer hi! the DLL should be under `bin` or `bin64` if the build succeeded. – Steven R. Loomis Feb 04 '21 at 18:55