From: Markus Scherer Date: Wed, 6 Feb 2019 00:52:29 +0000 (-0800) Subject: ICU-20376 makeconv prepend relative sourcedir to args; only ignore if nothing but... X-Git-Tag: release-64-rc~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5d2c560a09dcdb8af6efef91c6538c057b8fe84;p=icu ICU-20376 makeconv prepend relative sourcedir to args; only ignore if nothing but a single dot --- 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);