How to use ICU without setting ICU_DATA directory

2014-01-14T01:48:05

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?

Copyright License:
Author:「Tobias Langner」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/21097957/how-to-use-icu-without-setting-icu-data-directory

About “How to use ICU without setting ICU_DATA directory” questions

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
I recently moved from using ICU32 to ICU51. But now Mapping table (.ucm) is not getting loaded. I searched the net ant tried the fixes like making sure the path is correct and ends with backslash but
I built and installed icu-69.1. The ICU data I built into shared libraries, with option --with-data-packaging=library. My goal is that windows-1252 encoding included in ICU data file . The desired
My goal is to implement Unicode in UTF-16 format in an embedded system. I want to be able to use multiple languages to display on my LCD. The texts in multiple languages are going to be written in
I'm trying to pare down the libicudata.a file to the bare minimum that would still allow me to be able to test the following: u_stringHasBinaryProperty(icu::UnicodeString::fromUTF8("🤙🏿").
I'm trying to obtain english ordinals to use in a leaderboard through choice format. My current solution is to have something like this : {0,choice,0#th|1#st|2#nd|3#rd|3<th} And use this is a
How do I convert local time to a specific time zone including dst using ICU in c++? I saw an example but it doesn't take into account dts. is it enough to update the zoneinfo file on the Linux server
I would like to build boost regex on Solaris 10 without using the icu libraries. After building boost regex without icu support ./bootstrap.sh --without-icu ./b2 --disable-icu The resulting lib ...
I'm looking into using ICU for Unicode string processing in a native Node.js module because it seems to me that v8::String (according to these docs) doesn't have a C++ API for this purpose. To my
My question is similar to an existing one, but I'm using webpack and thus don't even have a "node_modules" directory. I've still tried the following environment variable settings without success:

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.