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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user