ICU-20376 makeconv prepend relative sourcedir to args; only ignore if nothing but a single dot

This commit is contained in:
Markus Scherer 2019-02-05 16:52:29 -08:00
parent 01ecea2df0
commit f5d2c560a0

View file

@ -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);