Skip to content

Commit

Permalink
Unicode support for pathsep_strchr
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Dec 9, 2018
1 parent b8f5e9b commit e67cc2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timidity/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ static int is_sjis_leadbyte(char c)

char *pathsep_strchr(const char *path)
{
#if defined(__W32__) // sjis
#if defined(__W32__) && defined(JAPANESE) && !defined(UNICODE) // sjis
int tail = 0;
while (*path)
{
Expand Down Expand Up @@ -1686,7 +1686,7 @@ char *pathsep_strchr(const char *path)

char *pathsep_strrchr(const char *path)
{
#if defined(__W32__) // sjis
#if defined(__W32__) && defined(JAPANESE) && !defined(UNICODE) // sjis
char *last_sep = NULL;
int tail = 0;
while (*path)
Expand Down

0 comments on commit e67cc2b

Please sign in to comment.