Révision | e67cc2bd363200c9dc7c9076811b9eacae08b0f6 (tree) |
---|---|
l'heure | 2018-12-10 01:23:32 |
Auteur | Starg <starg@user...> |
Commiter | Starg |
Unicode support for pathsep_strchr
@@ -1647,7 +1647,7 @@ static int is_sjis_leadbyte(char c) | ||
1647 | 1647 | |
1648 | 1648 | char *pathsep_strchr(const char *path) |
1649 | 1649 | { |
1650 | -#if defined(__W32__) // sjis | |
1650 | +#if defined(__W32__) && defined(JAPANESE) && !defined(UNICODE) // sjis | |
1651 | 1651 | int tail = 0; |
1652 | 1652 | while (*path) |
1653 | 1653 | { |
@@ -1686,7 +1686,7 @@ char *pathsep_strchr(const char *path) | ||
1686 | 1686 | |
1687 | 1687 | char *pathsep_strrchr(const char *path) |
1688 | 1688 | { |
1689 | -#if defined(__W32__) // sjis | |
1689 | +#if defined(__W32__) && defined(JAPANESE) && !defined(UNICODE) // sjis | |
1690 | 1690 | char *last_sep = NULL; |
1691 | 1691 | int tail = 0; |
1692 | 1692 | while (*path) |