ICU-289 Removed commented code
X-SVN-Rev: 2242
This commit is contained in:
parent
df1b75b4ba
commit
4fa7a8cc64
@ -586,12 +586,12 @@ void TestConvert()
|
||||
UChar32 c;
|
||||
const uint8_t in[]={ 0x1b, 0x25, 0x42, 0x31, 0x32, 0x61, 0xc0, 0x80, 0xe0, 0x80, 0x80, 0xf0, 0x80, 0x80, 0x80};
|
||||
const char *source=(const char *)in, *limit=(const char *)in+sizeof(in);
|
||||
UConverter *cnv=ucnv_open("iso-2022", &err);
|
||||
if(/* broken for icu 1.6, do not test */uprv_strcmp("1.6", U_ICU_VERSION) != 0 && U_FAILURE(err)) {
|
||||
UConverter *cnv=ucnv_open("ISO_2022", &err);
|
||||
if(U_FAILURE(err)) {
|
||||
log_err("Unable to open a iso-2022 converter: %s\n", u_errorName(err));
|
||||
}
|
||||
c=ucnv_getNextUChar(cnv, &source, limit, &err);
|
||||
if(/* broken for icu 1.6, do not test */uprv_strcmp("1.6", U_ICU_VERSION) != 0 && (U_FAILURE(err) || c != (UChar32)0x0031)) {
|
||||
if((U_FAILURE(err) || c != (UChar32)0x0031)) {
|
||||
log_err("ucnv_getNextUChar() failed: %s\n", u_errorName(err));
|
||||
}
|
||||
ucnv_reset(cnv);
|
||||
@ -1053,7 +1053,7 @@ void TestAlias() {
|
||||
|
||||
/* Check a list of predetermined aliases that we expect to map
|
||||
* back to ISO_2022 and UTF8. */
|
||||
if(/* broken for icu 1.6, do not test */uprv_strcmp("1.6", U_ICU_VERSION) != 0) {
|
||||
//if(/* broken for icu 1.6, do not test */uprv_strcmp("1.6", U_ICU_VERSION) != 0) {
|
||||
for (i=1; i<ISO_2022_NAMES_LENGTH; ++i) {
|
||||
const char* mapBack = ucnv_getAlias(ISO_2022_NAMES[i], 0, &status);
|
||||
if (0 != uprv_strcmp(mapBack, ISO_2022_NAMES[0])) {
|
||||
@ -1061,7 +1061,7 @@ void TestAlias() {
|
||||
ISO_2022_NAMES[i], mapBack);
|
||||
}
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
for (i=1; i<UTF8_NAMES_LENGTH; ++i) {
|
||||
const char* mapBack = ucnv_getAlias(UTF8_NAMES[i], 0, &status);
|
||||
|
Loading…
Reference in New Issue
Block a user