diff options
author | minskim <minskim> | 2005-10-24 19:46:05 +0000 |
---|---|---|
committer | minskim <minskim> | 2005-10-24 19:46:05 +0000 |
commit | 0df83bbc239ccb271a06ede18403edb57d83ddb6 (patch) | |
tree | a37444274d22980450762ab581acb5db62446823 /multimedia/mplayer-share | |
parent | ef5e1ab174fd7c2bb230b3c62ae27074d5633e16 (diff) | |
download | pkgsrc-0df83bbc239ccb271a06ede18403edb57d83ddb6.tar.gz |
Call isspace(3) with unsigned char, instead of char, to handle
non-ASCII characters properly. Based on patches provided by Kevin Kim
Bump PKGREVISION for mplayer and gmplayer.
Diffstat (limited to 'multimedia/mplayer-share')
-rw-r--r-- | multimedia/mplayer-share/distinfo | 3 | ||||
-rw-r--r-- | multimedia/mplayer-share/patches/patch-ah | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/multimedia/mplayer-share/distinfo b/multimedia/mplayer-share/distinfo index 364ff9f0994..259fbb054c6 100644 --- a/multimedia/mplayer-share/distinfo +++ b/multimedia/mplayer-share/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.23 2005/08/27 06:59:52 dogcow Exp $ +$NetBSD: distinfo,v 1.24 2005/10/24 19:46:05 minskim Exp $ SHA1 (mplayer-1.0rc7/MPlayer-1.0pre7.tar.bz2) = df1e8d4f2f44d72c6f7989932f3b272e815ecb80 RMD160 (mplayer-1.0rc7/MPlayer-1.0pre7.tar.bz2) = a4bac10df287c4b134ea49b3bc9bf7fb0126cae6 @@ -19,6 +19,7 @@ SHA1 (patch-ad) = d705dd315e913593223b83e533c60a9620d34cc8 SHA1 (patch-ae) = 601808d8c89cba68156fb3c95fe9fcfb8da4fca0 SHA1 (patch-af) = 6eab8572b239f6ac7afc03ad6254a7c97f90663e SHA1 (patch-ag) = 9bc3466ef24970e3f26fc64601d9f2c27fa394d2 +SHA1 (patch-ah) = 744f073e791257768e5ec7da8e321d2f25d1fb2c SHA1 (patch-da) = be092da4f854708c1ef47f10c26e361c095a6799 SHA1 (patch-dc) = b11ef06a89f13e2ae5e013d569aa5acc99c770aa SHA1 (patch-dd) = e5b23b73a1e53e3185ecbac26042432395cd5e63 diff --git a/multimedia/mplayer-share/patches/patch-ah b/multimedia/mplayer-share/patches/patch-ah new file mode 100644 index 00000000000..3addd3ee64d --- /dev/null +++ b/multimedia/mplayer-share/patches/patch-ah @@ -0,0 +1,35 @@ +$NetBSD: patch-ah,v 1.1 2005/10/24 19:46:05 minskim Exp $ + +--- subreader.c.orig 2005-02-04 10:31:03.000000000 -0800 ++++ subreader.c +@@ -73,10 +73,10 @@ static int eol(char p) { + /* Remove leading and trailing space */ + static void trail_space(char *s) { + int i = 0; +- while (isspace(s[i])) ++i; ++ while (isspace((unsigned char)s[i])) ++i; + if (i) strcpy(s, s + i); + i = strlen(s) - 1; +- while (i > 0 && isspace(s[i])) s[i--] = '\0'; ++ while (i > 0 && isspace((unsigned char)s[i])) s[i--] = '\0'; + } + + static char *stristr(const char *haystack, const char *needle) { +@@ -627,7 +627,7 @@ subtitle *sub_read_line_pjs(FILE *fd,sub + if (!fgets (line, LINE_LEN, fd)) + return NULL; + /* skip spaces */ +- for (s=line; *s && isspace(*s); s++); ++ for (s=line; *s && isspace(*(unsigned char*)s); s++); + /* allow empty lines at the end of the file */ + if (*s==0) + return NULL; +@@ -680,7 +680,7 @@ subtitle *sub_read_line_mpsub(FILE *fd, + else return current; + } + p=line; +- while (isspace(*p)) p++; ++ while (isspace(*(unsigned char*)p)) p++; + if (eol(*p) && num > 0) return current; + if (eol(*p)) return NULL; + |