X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/c9467b7a34160c4e25580a2dc82087c5ae0bb2d0..1f389ba56131238fd101fda7fdf73304f0d84932:/libtests/t-unicode.c diff --git a/libtests/t-unicode.c b/libtests/t-unicode.c index de04e47..2a199e3 100644 --- a/libtests/t-unicode.c +++ b/libtests/t-unicode.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2005, 2007, 2008 Richard Kettlewell + * Copyright (C) 2005, 2007-2009, 2011 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,13 +30,13 @@ static FILE *open_unicode_test(const char *path) { base = path; if(!(fp = fopen(base, "r"))) { snprintf(buffer, sizeof buffer, - "wget http://www.unicode.org/Public/5.1.0/ucd/%s", path); + "wget http://www.unicode.org/Public/6.0.0/ucd/%s", path); if((w = system(buffer))) - fatal(0, "%s: %s", buffer, wstat(w)); + disorder_fatal(0, "%s: %s", buffer, wstat(w)); if(chmod(base, 0444) < 0) - fatal(errno, "chmod %s", base); + disorder_fatal(errno, "chmod %s", base); if(!(fp = fopen(base, "r"))) - fatal(errno, "%s", base); + disorder_fatal(errno, "%s", base); } return fp; } @@ -79,7 +79,7 @@ static void breaktest(const char *path, buffer[bn++] = strtoul(lp, &lp, 16); continue; } - fatal(0, "%s:%d: evil line: %s", path, lineno, l); + disorder_fatal(0, "%s:%d: evil line: %s", path, lineno, l); } for(n = 0; n <= bn; ++n) { if(breakfn(buffer, bn, n) != break_allowed[n]) {