ICU-6617 some haiku support. update config.guess and cleanup other test code.

X-SVN-Rev: 24942
This commit is contained in:
Steven R. Loomis 2008-11-08 02:04:15 +00:00
parent 4510d290cd
commit 63849800d4
6 changed files with 23 additions and 15 deletions

View file

@ -59,7 +59,7 @@ powerpc*-*-linux*)
*-*-os400*) icu_cv_host_frag=mh-os400 ;;
*-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
*-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
*-*-beos) icu_cv_host_frag=mh-beos ;;
*-*-beos|*-*-haiku) icu_cv_host_frag=mh-beos ;;
*-*-irix*) icu_cv_host_frag=mh-irix ;;
*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
*-*-nto*) icu_cv_host_frag=mh-qnx ;;

View file

@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
# Free Software Foundation, Inc.
timestamp='2008-01-23'
timestamp='2008-09-28'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -796,7 +796,7 @@ EOF
x86)
echo i586-pc-interix${UNAME_RELEASE}
exit ;;
EM64T | authenticamd)
EM64T | authenticamd | genuineintel)
echo x86_64-unknown-interix${UNAME_RELEASE}
exit ;;
IA64)
@ -935,6 +935,9 @@ EOF
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
exit ;;
padre:Linux:*:*)
echo sparc-unknown-linux-gnu
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
@ -985,9 +988,6 @@ EOF
a.out-i386-linux)
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
exit ;;
coff-i386)
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
exit ;;
"")
# Either a pre-BFD a.out linker (linux-gnuoldld) or
# one that does not give us useful --help.
@ -1216,6 +1216,9 @@ EOF
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
echo i586-pc-haiku
exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;

View file

@ -4407,7 +4407,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
*-*-os400*) icu_cv_host_frag=mh-os400 ;;
*-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
*-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
*-*-beos) icu_cv_host_frag=mh-beos ;;
*-*-beos|*-*-haiku) icu_cv_host_frag=mh-beos ;;
*-*-irix*) icu_cv_host_frag=mh-irix ;;
*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
*-*-nto*) icu_cv_host_frag=mh-qnx ;;
@ -10791,10 +10791,7 @@ $debug ||
if test -n "$CONFIG_FILES"; then
ac_cr=`echo X |tr X '\015'`
#ac_cr='
#'
ac_cr=`echo X |tr X '\015'`
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ac_cs_awk_cr='\\r'

View file

@ -19,6 +19,10 @@
#include "putilimp.h"
#include <stdio.h> // for toString()
#if defined (PI)
#undef PI
#endif
#ifdef U_DEBUG_ASTRO
# include "uresimp.h" // for debugging

View file

@ -1018,12 +1018,13 @@ static void Test_UChar_WCHART_API(void){
u_strFromWCS(uDest, uDestLen,&reqLen,wDest,reqLen,&err);
}
for(i=0; i< uSrcLen; i++){
if(!U_FAILURE(err)) {
for(i=0; i< uSrcLen; i++){
if(uDest[i] != src16WithNulls[i]){
log_verbose("u_str*WCS() failed for string with nulls expected: \\u%04X got: \\u%04X at index: %i \n", src16WithNulls[i] ,uDest[i],i);
failed =TRUE;
}
}
}
if(U_FAILURE(err)){
@ -1067,11 +1068,13 @@ static void Test_UChar_WCHART_API(void){
}
for(i=0; i< uSrcLen; i++){
if(!U_FAILURE(err)) {
for(i=0; i< uSrcLen; i++){
if(uDest[i] != src16j[i]){
log_verbose("u_str*WCS() failed for null terminated string expected: \\u%04X got: \\u%04X at index: %i \n", src16j[i] ,uDest[i],i);
failed =TRUE;
}
}
}
if(U_FAILURE(err)){

View file

@ -1641,7 +1641,8 @@ void UnicodeSetTest::TestSurrogate() {
for (int i=0; DATA[i] != 0; ++i) {
UErrorCode ec = U_ZERO_ERROR;
logln((UnicodeString)"Test pattern " + i + " :" + UnicodeString(DATA[i], -1, US_INV));
UnicodeSet set(UnicodeString(DATA[i], -1, US_INV), ec);
UnicodeString str = UnicodeString(DATA[i], -1, US_INV);
UnicodeSet set(str, ec);
if (U_FAILURE(ec)) {
errln("FAIL: UnicodeSet constructor");
continue;