Skip to content

Commit

Permalink
[ICU-3022] update idn browser
Browse files Browse the repository at this point in the history
X-SVN-Rev: 12914
  • Loading branch information
srl295 committed Aug 22, 2003
1 parent 4af6920 commit 3c1a2ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions idnbrowser/idnbrwsr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ printToUnicode (const UChar *s, int32_t length, UBool &printUnassignedError, UBo
} else {

uidna_IDNToUnicode(s, length, tempOut, length, UIDNA_DEFAULT, &parseError, &errorCode);
if(errorCode == U_IDNA_UNASSIGNED_CODEPOINT_FOUND_ERROR){
if(errorCode == U_IDNA_UNASSIGNED_ERROR){
printUnassignedError = TRUE;
}
errorCode = U_ZERO_ERROR;
Expand Down Expand Up @@ -443,7 +443,7 @@ printToASCII(const UChar *s, int32_t length,UBool &printUnassignedError, UBool &
} else {
uidna_IDNToASCII(s, length, tempOut, capacity, UIDNA_DEFAULT, &parseError, &errorCode);

if(errorCode == U_IDNA_UNASSIGNED_CODEPOINT_FOUND_ERROR){
if(errorCode == U_IDNA_UNASSIGNED_ERROR){
printUnassignedError = TRUE;
}
errorCode = U_ZERO_ERROR;
Expand Down Expand Up @@ -717,11 +717,11 @@ main(int argc, const char *argv[]) {
printToUnicode (input, inputLength,unass2,std32,status);
printToASCII (input, inputLength);
puts(endTable);
if(inputLength > 0 && (status == U_IDNA_UNASSIGNED_CODEPOINT_FOUND_ERROR || status == U_IDNA_STD3_ASCII_RULES_ERROR)){
if(inputLength > 0 && (status == U_IDNA_UNASSIGNED_ERROR || status == U_IDNA_STD3_ASCII_RULES_ERROR)){
printf("<font size=\"4\"><b>Information </b></font><br>\n");
if((std31==TRUE ||std32 ==TRUE)){
printf(STD3Fail);
}else if(status != U_IDNA_UNASSIGNED_CODEPOINT_FOUND_ERROR){
}else if(status != U_IDNA_UNASSIGNED_ERROR){
printf(STD3Pass);
}
printf("<br>\n");
Expand Down

0 comments on commit 3c1a2ba

Please sign in to comment.