From 1e86849408961d7f8f29cd4c53f02a32a0c3e4b7 Mon Sep 17 00:00:00 2001 From: Jeff Genovy <29107334+jefgen@users.noreply.github.com> Date: Tue, 12 Mar 2019 20:04:40 -0700 Subject: [PATCH] ICU-20491 ICU4C u_getDataDirectory on Windows shouldn't set path to current directory by default. This change was introduced by the following commit e9946ec98eb14f485a85f690fb41029d492b03a2. However, there's really no reason why the Windows UWP version should require the icudtl.dat file to be in the same directory as the icuuc.dll file. --- icu4c/source/common/putil.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/icu4c/source/common/putil.cpp b/icu4c/source/common/putil.cpp index 42db744c774..6e5468fe0bd 100644 --- a/icu4c/source/common/putil.cpp +++ b/icu4c/source/common/putil.cpp @@ -1420,12 +1420,7 @@ static void U_CALLCONV dataDirectoryInitFn() { if(path==NULL) { /* It looks really bad, set it to something. */ -#if U_PLATFORM_HAS_WIN32_API - // Windows UWP will require icudtl.dat file in same directory as icuuc.dll - path = ".\\"; -#else path = ""; -#endif } u_setDataDirectory(path); -- 2.40.0