U_BUFFER_OVERFLOW_ERROR,
NULL
},
- {
- "pkgdata",
- 1,
- U_BUFFER_OVERFLOW_ERROR,
- NULL
- },
{
"pkgdata",
2,
U_ZERO_ERROR,
- "."
- },
- {
- "pkgdata",
- 20,
- U_ZERO_ERROR,
- "."
+ ""
}
};
int32_t count=(sizeof(testCases)/sizeof(testCases[0]));
/* #1 try the same path where pkgdata was called from. */
findDirname(progname, cmdBuf, 1024, &status);
if(U_SUCCESS(status)) {
- uprv_strncat(cmdBuf, U_FILE_SEP_STRING, 1024);
+ if (cmdBuf[0] != 0) {
+ uprv_strncat(cmdBuf, U_FILE_SEP_STRING, 1024);
+ }
uprv_strncat(cmdBuf, cmd, 1024);
if(verbose) {
}
#endif
if(!basename) {
- /* no basename - return '.'. */
- resultPtr = ".";
- resultLen = 1;
+ /* no basename - return ''. */
+ resultPtr = "";
+ resultLen = 0;
} else {
resultPtr = path;
resultLen = basename - path;
* If successful, copies the directory name into the output buffer along with
* a terminating NULL.
*
- * If there isn't a directory name in the path, it returns the current directory string ('.').
+ * If there isn't a directory name in the path, it returns an empty string.
* @param path the full pathname to inspect.
* @param buffer the output buffer
* @param bufLen the output buffer length