From f5d2c560a09dcdb8af6efef91c6538c057b8fe84 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Tue, 5 Feb 2019 16:52:29 -0800 Subject: [PATCH] ICU-20376 makeconv prepend relative sourcedir to args; only ignore if nothing but a single dot --- icu4c/source/tools/makeconv/makeconv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/tools/makeconv/makeconv.cpp b/icu4c/source/tools/makeconv/makeconv.cpp index 1f34e90f9fa..37dc46203f1 100644 --- a/icu4c/source/tools/makeconv/makeconv.cpp +++ b/icu4c/source/tools/makeconv/makeconv.cpp @@ -292,7 +292,7 @@ int main(int argc, char* argv[]) const char *arg = getLongPathname(*argv); const char* sourcedir = options[OPT_SOURCEDIR].value; - if (sourcedir != NULL && *sourcedir != 0 && *sourcedir != '.') { + if (sourcedir != NULL && *sourcedir != 0 && uprv_strcmp(sourcedir, ".") != 0) { pathBuf.clear(); pathBuf.appendPathPart(sourcedir, localError); pathBuf.appendPathPart(arg, localError);