forked from github/server
Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
680c873844
|
@ -14,7 +14,7 @@ GAME=$1
|
|||
EMAIL=$2
|
||||
FACTION=$3
|
||||
PASSWD=$4
|
||||
echo "$GAME $EMAIL $FACTION $PASSWD" >> /tmp/report.log
|
||||
#echo "$GAME $EMAIL $FACTION $PASSWD" >> /tmp/report.log
|
||||
|
||||
function reply() {
|
||||
echo $@ | mutt -s "Reportnachforderung Partei ${FACTION}" $EMAIL
|
||||
|
|
|
@ -22,6 +22,7 @@ exit $2 # otherwise
|
|||
function build() {
|
||||
assert_dir $SOURCE
|
||||
cd $SOURCE
|
||||
rm -rf crypto tolua
|
||||
git fetch || abort "failed to update source. do you have local changes?"
|
||||
[ -z $1 ] || git checkout $1
|
||||
git pull
|
||||
|
|
|
@ -679,7 +679,7 @@ static const char * relpath(char *buf, size_t sz, const char *path) {
|
|||
static const char *g_datadir;
|
||||
const char *datapath(void)
|
||||
{
|
||||
static char zText[MAX_PATH]; // FIXME: static return value
|
||||
static char zText[MAX_PATH];
|
||||
if (g_datadir)
|
||||
return g_datadir;
|
||||
return relpath(zText, sizeof(zText), "data");
|
||||
|
@ -693,7 +693,7 @@ void set_datapath(const char *path)
|
|||
static const char *g_reportdir;
|
||||
const char *reportpath(void)
|
||||
{
|
||||
static char zText[MAX_PATH]; // FIXME: static return value
|
||||
static char zText[MAX_PATH];
|
||||
if (g_reportdir)
|
||||
return g_reportdir;
|
||||
return relpath(zText, sizeof(zText), "reports");
|
||||
|
|
|
@ -23,42 +23,42 @@ static void test_unicode_utf8_to_other(CuTest *tc)
|
|||
unsigned char ch;
|
||||
size_t sz;
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, '?', ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str+2, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, '?', ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str+4, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, '?', ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp437(&ch, utf8_str + 6, &sz));
|
||||
CuAssertIntEquals(tc, 1, sz);
|
||||
CuAssertIntEquals(tc, 1, (int)sz);
|
||||
CuAssertIntEquals(tc, 'l', ch);
|
||||
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp1252(&ch, utf8_str, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, 216, ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp1252(&ch, utf8_str+2, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, 120, ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp1252(&ch, utf8_str + 4, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, 0x9d, ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_cp1252(&ch, utf8_str + 6, &sz));
|
||||
CuAssertIntEquals(tc, 1, sz);
|
||||
CuAssertIntEquals(tc, 1, (int)sz);
|
||||
CuAssertIntEquals(tc, 'l', ch);
|
||||
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_ascii(&ch, utf8_str, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, '?', ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_ascii(&ch, utf8_str + 2, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, '?', ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_ascii(&ch, utf8_str + 4, &sz));
|
||||
CuAssertIntEquals(tc, 2, sz);
|
||||
CuAssertIntEquals(tc, 2, (int)sz);
|
||||
CuAssertIntEquals(tc, '?', ch);
|
||||
CuAssertIntEquals(tc, 0, unicode_utf8_to_ascii(&ch, utf8_str + 6, &sz));
|
||||
CuAssertIntEquals(tc, 1, sz);
|
||||
CuAssertIntEquals(tc, 1, (int)sz);
|
||||
CuAssertIntEquals(tc, 'l', ch);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue