Make saving of unicode named files work under Win32

the "Long" name is converted to short (DOS 8.3) name
as soon as possible.
This commit is contained in:
Thomas Bernard
2018-02-16 12:45:07 +01:00
parent 74818299a3
commit ad219c84d2
5 changed files with 47 additions and 1 deletions

View File

@@ -64,6 +64,15 @@ void Unicode_strlcpy(word * dst, const word * src, size_t len)
*dst = 0;
}
/// concatenate unicode string
void Unicode_strlcat(word * dst, const word * src, size_t len)
{
size_t dst_len = Unicode_strlen(dst);
if (dst_len >= len)
return;
Unicode_strlcpy(dst + dst_len, src, len - dst_len);
}
/// Compare an unicode string with a regular Latin1 string
int Unicode_char_strcmp(const word * s1, const char * s2)
{