mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
ICU-87 changed the registry key to HKLM "SOFTWARE\\ICU\\Unicode\\Data"
X-SVN-Rev: 642
This commit is contained in:
parent
d48f0ee5e4
commit
ea63c9f28e
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ That directory is determined sequentially by
|
|||
<li><code>getenv("ICU_DATA")</code> -
|
||||
the contents of the ICU_DATA environment variable</li>
|
||||
<li>on Windows, by the value named <code>"Path"</code> of the registry key
|
||||
<code>HKEY_LOCAL_MACHINE "SOFTWARE\\IBM\\Unicode\\Data"</code></li>
|
||||
<code>HKEY_LOCAL_MACHINE "SOFTWARE\\ICU\\Unicode\\Data"</code></li>
|
||||
<li>relative to the path where <code>icuuc.dll</code> or <code>libicu-uc.so</code> or similar
|
||||
is loaded from: if it is loaded from <code>/some/path/lib/libicu-uc.so</code>, then
|
||||
the path will be <code>/some/path/lib/../share/icu/1.3.1/</code>
|
||||
|
|
|
@ -1018,7 +1018,7 @@ u_getDataDirectory(void) {
|
|||
if(path==NULL || *path==0) {
|
||||
HKEY key;
|
||||
|
||||
if(ERROR_SUCCESS==RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\IBM\\Unicode\\Data", 0, KEY_QUERY_VALUE, &key)) {
|
||||
if(ERROR_SUCCESS==RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\ICU\\Unicode\\Data", 0, KEY_QUERY_VALUE, &key)) {
|
||||
DWORD type=REG_EXPAND_SZ, size=sizeof(pathBuffer);
|
||||
|
||||
if(ERROR_SUCCESS==RegQueryValueEx(key, "Path", NULL, &type, pathBuffer, &size) && size>1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue