Home | History | Annotate | Download | only in cintltst

Lines Matching defs:errorCode

181      UErrorCode errorCode=U_ZERO_ERROR;
186 c=ucnv_getNextUChar(cnv, &s, limit, &errorCode);
187 if(errorCode==U_INDEX_OUTOFBOUNDS_ERROR) {
189 } else if(U_FAILURE(errorCode)) {
190 log_err("%s ucnv_getNextUChar() failed: %s\n", message, u_errorName(errorCode));
209 UErrorCode errorCode=U_ZERO_ERROR;
211 c=ucnv_getNextUChar(cnv, &s, limit, &errorCode);
212 if(errorCode != expected){
213 log_err("FAIL: Expected:%s when %s-----Got:%s\n", myErrorName(expected), message, myErrorName(errorCode));
1477 UErrorCode errorCode;
1481 errorCode=U_ZERO_ERROR;
1484 ucnv_toUnicode(cnv, &u, u+20, &s, s+3, NULL, TRUE, &errorCode);
1485 if(U_FAILURE(errorCode)) {
1502 ucnv_getName(cnv, &errorCode), outUnicode[2]!=0x5c, isAmbiguous);
1511 log_err("error: ucnv_fixFileSeparator(%s) failed\n", ucnv_getName(cnv, &errorCode));
1848 UErrorCode errorCode=U_ZERO_ERROR;
1849 UConverter *cnv=ucnv_open("UTF-7", &errorCode);
1850 if(U_FAILURE(errorCode)) {
1851 log_err("Unable to open a UTF-7 converter: %s\n", u_errorName(errorCode)); /* sholdn't be a data err */
1857 cnvName = ucnv_getName(cnv, &errorCode);
1858 if (U_FAILURE(errorCode) || uprv_strcmp(cnvName, "UTF-7") != 0) {
1859 log_err("UTF-7 converter is called %s: %s\n", cnvName, u_errorName(errorCode));
1891 UErrorCode errorCode=U_ZERO_ERROR;
1892 UConverter *cnv=ucnv_open("IMAP-mailbox-name", &errorCode);
1893 if(U_FAILURE(errorCode)) {
1894 log_err("Unable to open a IMAP-mailbox-name converter: %s\n", u_errorName(errorCode)); /* sholdn't be a data err */
1900 cnvName = ucnv_getName(cnv, &errorCode);
1901 if (U_FAILURE(errorCode) || uprv_strcmp(cnvName, "IMAP-mailbox-name") != 0) {
1902 log_err("IMAP-mailbox-name converter is called %s: %s\n", cnvName, u_errorName(errorCode));
1953 UErrorCode errorCode=U_ZERO_ERROR;
1954 UConverter *cnv=ucnv_open("UTF-8", &errorCode);
1955 if(U_FAILURE(errorCode)) {
1956 log_err("Unable to open a UTF-8 converter: %s\n", u_errorName(errorCode));
1964 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2024 UErrorCode errorCode=U_ZERO_ERROR;
2025 UConverter *cnv=ucnv_open("CESU-8", &errorCode);
2026 if(U_FAILURE(errorCode)) {
2027 log_err("Unable to open a CESU-8 converter: %s\n", u_errorName(errorCode));
2035 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2076 UErrorCode errorCode=U_ZERO_ERROR;
2077 UConverter *cnv=ucnv_open("UTF-16", &errorCode);
2078 if(U_FAILURE(errorCode)) {
2079 log_err("Unable to open a UTF-16 converter: %s\n", u_errorName(errorCode));
2124 UErrorCode errorCode=U_ZERO_ERROR;
2125 UConverter *cnv=ucnv_open("utf-16be", &errorCode);
2126 if(U_FAILURE(errorCode)) {
2127 log_err("Unable to open a UTF16-BE converter: %s\n", u_errorName(errorCode));
2136 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2178 UErrorCode errorCode=U_ZERO_ERROR;
2179 UConverter *cnv=ucnv_open("utf-16le", &errorCode);
2180 if(U_FAILURE(errorCode)) {
2181 log_err("Unable to open a UTF16-LE converter: %s\n", u_errorName(errorCode));
2190 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2244 UErrorCode errorCode=U_ZERO_ERROR;
2245 UConverter *cnv=ucnv_open("UTF-32", &errorCode);
2246 if(U_FAILURE(errorCode)) {
2247 log_err("Unable to open a UTF-32 converter: %s\n", u_errorName(errorCode));
2320 UErrorCode errorCode=U_ZERO_ERROR;
2321 UConverter *cnv=ucnv_open("UTF-32BE", &errorCode);
2322 if(U_FAILURE(errorCode)) {
2323 log_err("Unable to open a UTF-32BE converter: %s\n", u_errorName(errorCode));
2332 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2391 UErrorCode errorCode=U_ZERO_ERROR;
2392 UConverter *cnv=ucnv_open("UTF-32LE", &errorCode);
2393 if(U_FAILURE(errorCode)) {
2394 log_err("Unable to open a UTF-32LE converter: %s\n", u_errorName(errorCode));
2403 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2524 UErrorCode errorCode=U_ZERO_ERROR;
2525 UConverter *cnv=ucnv_open("LATIN_1", &errorCode);
2526 if(U_FAILURE(errorCode)) {
2527 log_data_err("Unable to open a LATIN_1 converter: %s\n", u_errorName(errorCode));
2555 UErrorCode errorCode=U_ZERO_ERROR;
2556 UConverter *cnv=ucnv_open("x-mac-turkish", &errorCode);
2557 if(U_FAILURE(errorCode)) {
2558 log_data_err("Unable to open a SBCS(x-mac-turkish) converter: %s\n", u_errorName(errorCode));
2597 UErrorCode errorCode=U_ZERO_ERROR;
2599 UConverter *cnv=my_ucnv_open("@ibm9027", &errorCode);
2600 if(U_FAILURE(errorCode)) {
2601 log_data_err("Unable to open a DBCS(@ibm9027) converter: %s\n", u_errorName(errorCode));
2615 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2648 UErrorCode errorCode=U_ZERO_ERROR;
2650 UConverter *cnv=ucnv_open("ibm-1363", &errorCode);
2651 if(U_FAILURE(errorCode)) {
2652 log_data_err("Unable to open a MBCS(ibm-1363) converter: %s\n", u_errorName(errorCode));
2666 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2758 UErrorCode errorCode=U_ZERO_ERROR;
2761 cnv=ucnv_open("ISO_2022", &errorCode);
2762 if(U_FAILURE(errorCode)) {
2763 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
2774 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2802 UErrorCode errorCode=U_ZERO_ERROR;
2818 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,NULL,FALSE, &errorCode);
2819 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2820 errorCode=U_ZERO_ERROR;
2824 if(U_FAILURE(errorCode)){
2825 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2834 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,NULL,FALSE,&errorCode);
2835 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2836 errorCode=U_ZERO_ERROR;
2839 if(U_FAILURE(errorCode)){
2840 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2869 UErrorCode errorCode=U_ZERO_ERROR;
2879 numCharsInTarget=ucnv_fromUChars(cnv, cTarget, (int32_t)(cTargetLimit-cTarget), uSource, (int32_t)(uSourceLimit-uSource), &errorCode);
2880 if(U_FAILURE(errorCode)){
2881 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
2886 ucnv_toUChars(cnv,uTarget,(int32_t)(uTargetLimit-uTarget),cSource,numCharsInTarget,&errorCode);
2887 if(U_FAILURE(errorCode)){
2888 log_err("ucnv_toUChars conversion failed, reason %s\n", u_errorName(errorCode));
2919 UErrorCode errorCode=U_ZERO_ERROR;
2938 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,NULL,FALSE, &errorCode);
2939 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2940 errorCode=U_ZERO_ERROR;
2944 if(U_FAILURE(errorCode)){
2945 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2956 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,NULL,FALSE,&errorCode);
2957 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2958 errorCode=U_ZERO_ERROR;
2961 if(U_FAILURE(errorCode)){
2962 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2984 UErrorCode errorCode=U_ZERO_ERROR;
2989 c=ucnv_getNextUChar(cnv, &s, limit, &errorCode);
2990 if(errorCode==U_INDEX_OUTOFBOUNDS_ERROR) {
2992 } else if(U_FAILURE(errorCode)) {
2993 log_err("%s ucnv_getNextUChar() failed: %s\n", message, u_errorName(errorCode));
3109 UErrorCode errorCode=U_ZERO_ERROR;
3113 cnv=ucnv_open("HZ", &errorCode);
3114 if(U_FAILURE(errorCode)) {
3115 log_data_err("Unable to open HZ converter: %s\n", u_errorName(errorCode));
3127 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3128 if(U_FAILURE(errorCode)){
3129 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3136 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3137 if(U_FAILURE(errorCode)){
3138 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3328 UErrorCode errorCode=U_ZERO_ERROR;
3332 cnv=ucnv_open("ISO_2022_JP_1", &errorCode);
3333 if(U_FAILURE(errorCode)) {
3334 log_data_err("Unable to open an ISO_2022_JP_1 converter: %s\n", u_errorName(errorCode));
3346 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3347 if(U_FAILURE(errorCode)){
3348 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3355 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3356 if(U_FAILURE(errorCode)){
3357 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3394 UErrorCode errorCode=U_ZERO_ERROR;
3398 cnv=my_ucnv_open(conv, &errorCode);
3399 if(U_FAILURE(errorCode)) {
3400 log_data_err("Unable to open a %s converter: %s\n", conv, u_errorName(errorCode));
3412 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3413 if(U_FAILURE(errorCode)){
3414 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3422 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3423 if(U_FAILURE(errorCode)){
3424 log_err("ucnv_toUnicode conversion failed, reason: %s\n", u_errorName(errorCode));
3447 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3448 if(U_FAILURE(errorCode)){
3449 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3871 UErrorCode errorCode=U_ZERO_ERROR;
3874 cnv=ucnv_open("ISO_2022_JP_1", &errorCode);
3875 if(U_FAILURE(errorCode)) {
3876 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
3888 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,NULL,TRUE, &errorCode);
3889 if(U_FAILURE(errorCode)){
3890 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3896 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,NULL,TRUE,&errorCode);
3897 if(U_FAILURE(errorCode)){
3898 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3911 cnv=ucnv_open("ISO_2022,locale=jp,version=1", &errorCode);*/
3960 UErrorCode errorCode=U_ZERO_ERROR;
3964 cnv=ucnv_open("ISO_2022_JP_2", &errorCode);
3965 if(U_FAILURE(errorCode)) {
3966 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
3978 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3979 if(U_FAILURE(errorCode)){
3980 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3987 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3988 if(U_FAILURE(errorCode)){
3989 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4037 UErrorCode errorCode=U_ZERO_ERROR;
4041 cnv=ucnv_open("ISO_2022,locale=kr", &errorCode);
4042 if(U_FAILURE(errorCode)) {
4043 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4055 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4056 if(U_FAILURE(errorCode)){
4057 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4064 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4065 if(U_FAILURE(errorCode)){
4066 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4086 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
4116 UErrorCode errorCode=U_ZERO_ERROR;
4120 cnv=ucnv_open("ibm-25546", &errorCode);
4121 if(U_FAILURE(errorCode)) {
4122 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4134 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4135 if(U_FAILURE(errorCode)){
4136 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4143 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4144 if(U_FAILURE(errorCode)){
4145 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4166 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
4179 UErrorCode errorCode = U_ZERO_ERROR;
4183 kr=ucnv_open("iso-2022-kr", &errorCode);
4184 if(U_FAILURE(errorCode)) {
4185 log_data_err("Unable to open a iso-2022-kr converter: %s\n", u_errorName(errorCode));
4188 ucnv_toUnicode(kr,&target,targetLimit,&source,source+uprv_strlen(source),NULL,TRUE,&errorCode);
4189 if(U_FAILURE(errorCode)) {
4190 log_err("iso-2022-kr cannot handle multiple escape sequences : %s\n", u_errorName(errorCode));
4193 kr1 = ucnv_open("ibm-25546", &errorCode);
4194 if(U_FAILURE(errorCode)) {
4195 log_data_err("Unable to open a iso-2022-kr_1 converter: %s\n", u_errorName(errorCode));
4200 ucnv_toUnicode(kr,&target,targetLimit,&source,source+uprv_strlen(source),NULL,TRUE,&errorCode);
4202 if(U_FAILURE(errorCode)) {
4203 log_err("iso-2022-kr_1 cannot handle multiple escape sequences : %s\n", u_errorName(errorCode));
4422 UErrorCode errorCode=U_ZERO_ERROR;
4426 cnv=ucnv_open("ISO_2022,locale=cn,version=1", &errorCode);
4427 if(U_FAILURE(errorCode)) {
4428 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4440 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4441 if(U_FAILURE(errorCode)){
4442 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4449 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4450 if(U_FAILURE(errorCode)){
4451 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4521 UErrorCode errorCode=U_ZERO_ERROR;
4525 cnv=ucnv_open("ISO_2022,locale=cn,version=0", &errorCode);
4526 if(U_FAILURE(errorCode)) {
4527 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4539 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4540 if(U_FAILURE(errorCode)){
4541 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4548 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4549 if(U_FAILURE(errorCode)){
4550 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4683 UErrorCode errorCode=U_ZERO_ERROR;
4684 UConverter *cnv=ucnv_open("ibm-930", &errorCode);
4685 if(U_FAILURE(errorCode)) {
4686 log_data_err("Unable to open a EBCDIC_STATEFUL(ibm-930) converter: %s\n", u_errorName(errorCode));
4759 UErrorCode errorCode=U_ZERO_ERROR;
4760 UConverter *cnv=ucnv_open("gb18030", &errorCode);
4761 if(U_FAILURE(errorCode)) {
4762 log_data_err("Unable to open a gb18030 converter: %s\n", u_errorName(errorCode));
4868 UErrorCode errorCode=U_ZERO_ERROR;
4871 cnv1=ucnv_open(NAME_LMBCS_1, &errorCode);
4872 if(U_FAILURE(errorCode)) {
4873 log_data_err("Unable to open a LMBCS-1 converter: %s\n", u_errorName(errorCode));
4876 cnv2=ucnv_open(NAME_LMBCS_2, &errorCode);
4877 if(U_FAILURE(errorCode)) {
4878 log_data_err("Unable to open a LMBCS-2 converter: %s\n", u_errorName(errorCode));
4883 get_name = ucnv_getName (cnv1, &errorCode);
4887 get_name = ucnv_getName (cnv2, &errorCode);
4893 ucnv_getSubstChars (cnv1, get_subchars, &len, &errorCode);
4894 if(U_FAILURE(errorCode)) {
4895 log_err("Failure on get subst chars: %s\n", u_errorName(errorCode));
4903 ucnv_setSubstChars (cnv2,new_subchars, len, &errorCode);
4904 if(U_FAILURE(errorCode)) {
4905 log_err("Failure on set subst chars: %s\n", u_errorName(errorCode));
4907 ucnv_getSubstChars (cnv2, get_subchars, &len, &errorCode);
4908 if(U_FAILURE(errorCode)) {
4909 log_err("Failure on get subst chars: %s\n", u_errorName(errorCode));
4924 UErrorCode errorCode=U_ZERO_ERROR;
4942 cnv=ucnv_open("lmbcs", &errorCode); /* use generic name for LMBCS-1 */
4943 if(U_FAILURE(errorCode)) {
4944 log_data_err("Unable to open a LMBCS converter: %s\n", u_errorName(errorCode));
4957 &errorCode);
4978 UErrorCode errorCode=U_ZERO_ERROR;
4981 cnv=ucnv_open("LMBCS-1", &errorCode);
4982 if(U_FAILURE(errorCode)) {
4983 log_data_err("Unable to open a LMBCS-1 converter: %s\n", u_errorName(errorCode));
4991 uniChar=ucnv_getNextUChar(cnv, &source, source + (off[1] - off[0]), &errorCode);
4992 if(U_FAILURE(errorCode)) {
4993 log_err("LMBCS-1 ucnv_getNextUChar() failed: %s\n", u_errorName(errorCode));
5008 UErrorCode errorCode=U_ZERO_ERROR;
5009 UConverter *cnv16he = ucnv_open("LMBCS-16,locale=he", &errorCode);
5010 UConverter *cnv16jp = ucnv_open("LMBCS-16,locale=ja_JP", &errorCode);
5011 UConverter *cnv01us = ucnv_open("LMBCS-1,locale=us_EN", &errorCode);
5023 NULL, 1, &errorCode);
5035 NULL, 1, &errorCode);
5049 NULL, 1, &errorCode);
5050 if (U_FAILURE(errorCode) || pLMBCSOut != (const char *)lmbcsString+1 || pUniIn != uniString+1 || uniString[0] != 0xFF6E)
5060 NULL, 1, &errorCode);
5061 if (U_FAILURE(errorCode) || pLMBCSIn != (const char *)lmbcsString+3 || pUniOut != uniString+1
5071 NULL, 1, &errorCode);
5072 if (U_FAILURE(errorCode) || pLMBCSOut != (const char *)lmbcsString+3 || pUniIn != uniString+1 || uniString[0] != 0xFF6E)
5081 NULL, 1, &errorCode);
5082 if (U_FAILURE(errorCode) || pLMBCSIn != (const char *)lmbcsString+1 || pUniOut != uniString+1 || lmbcsString[0] != 0xAE)
5093 UErrorCode errorCode=U_ZERO_ERROR;
5104 cnv = ucnv_open(NAME_LMBCS_1, &errorCode);
5105 if(U_FAILURE(errorCode)) {
5106 log_err("Unable to open a LMBCS-1 converter: %s\n", u_errorName(errorCode));
5111 while ((pSource < sourceLimit) && U_SUCCESS (errorCode))
5120 &errorCode);
5122 if (U_SUCCESS (errorCode))
5139 log_err("Unexpected Error on toUnicode: %s\n", u_errorName(errorCode));
5159 errorCode=U_ZERO_ERROR;
5163 ucnv_fromUnicode(cnv, &pLOut, pLOut+1, &pUIn, pUIn-1, off, FALSE, &errorCode);
5164 if (errorCode != U_ILLEGAL_ARGUMENT_ERROR)
5166 log_err("Unexpected Error on negative source request to ucnv_fromUnicode: %s\n", u_errorName(errorCode));
5170 errorCode=U_ZERO_ERROR;
5171 ucnv_toUnicode(cnv, &pUOut,pUOut+1,(const char **)&pLIn,(const char *)(pLIn-1),off,FALSE, &errorCode);
5172 if (errorCode != U_ILLEGAL_ARGUMENT_ERROR)
5174 log_err("Unexpected Error on negative source request to ucnv_toUnicode: %s\n", u_errorName(errorCode));
5176 errorCode=U_ZERO_ERROR;
5178 uniChar = ucnv_getNextUChar(cnv, (const char **)&pLIn, (const char *)(pLIn-1), &errorCode);
5179 if (errorCode != U_ILLEGAL_ARGUMENT_ERROR)
5181 log_err("Unexpected Error on negative source request to ucnv_getNextUChar: %s\n", u_errorName(errorCode));
5183 errorCode=U_ZERO_ERROR;
5186 ucnv_toUnicode(cnv, &pUOut,pUOut+1,(const char **)&pLIn,(const char *)pLIn,off,FALSE, &errorCode);
5187 ucnv_fromUnicode(cnv, &pLOut,pLOut+1,&pUIn,pUIn,off,FALSE, &errorCode);
5188 if(U_FAILURE(errorCode)) {
5189 log_err("0 byte source request: unexpected error: %s\n", u_errorName(errorCode));
5196 uniChar = ucnv_getNextUChar(cnv, (const char **)&pLIn, (const char *)pLIn, &errorCode);
5197 if (errorCode != U_INDEX_OUTOFBOUNDS_ERROR)
5199 log_err("Unexpected Error on 0-byte source request to ucnv_getnextUChar: %s\n", u_errorName(errorCode));
5205 errorCode = U_ZERO_ERROR;
5210 ucnv_fromUnicode(cnv, &pLOut,pLOut+offsets[4],&pUIn,pUIn+sizeof(pszUnicode)/sizeof(UChar),off,FALSE, &errorCode);
5211 if (errorCode != U_BUFFER_OVERFLOW_ERROR || pLOut != LOut + offsets[4] || pUIn != pszUnicode+4 )
5216 errorCode = U_ZERO_ERROR;
5219 ucnv_toUnicode(cnv, &pUOut,pUOut+4,&pLIn,(pLIn+sizeof(pszLMBCS)),off,FALSE, &errorCode);
5220 if (errorCode != U_BUFFER_OVERFLOW_ERROR || pUOut != UOut + 4 || pLIn != (const char *)pszLMBCS+offsets[4])
5234 errorCode = U_ZERO_ERROR;
5237 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
5238 ucnv_toUnicode(cnv, &pUOut,pUOut+sizeof(UOut)/sizeof(UChar),(const char **)&pLIn,(const char *)(pLIn+5),off,TRUE, &errorCode);
5239 if (UOut[0] != 0xD801 || errorCode != U_TRUNCATED_CHAR_FOUND || pUOut != UOut + 1 || pLIn != LIn + 5)
5249 errorCode = U_ZERO_ERROR;
5252 ucnv_toUnicode(cnv, &pUOut,pUOut+sizeof(UOut)/sizeof(UChar),(const char **)&pLIn,(const char *)(pLIn+3),off,TRUE, &errorCode);
5253 if (UOut[0] != 0xD801 || U_FAILURE(errorCode) || pUOut != UOut + 1 || pLIn != LIn + 3)
5266 errorCode = U_ZERO_ERROR;
5269 ucnv_toUnicode(cnv, &pUOut,pUOut+sizeof(UOut)/sizeof(UChar),(const char **)&pLIn,(const char *)(pLIn+6),off,TRUE, &errorCode);
5270 if (UOut[0] != 0xD801 || UOut[1] != 0xC9D0 || U_FAILURE(errorCode) || pUOut != UOut + 2 || pLIn != LIn + 6)
5283 errorCode = U_ZERO_ERROR;
5286 ucnv_toUnicode(cnv, &pUOut,pUOut+sizeof(UOut)/sizeof(UChar),(const char **)&pLIn,(const char *)(pLIn+5),off,TRUE, &errorCode);
5287 if (UOut[0] != 0xD801 || errorCode != U_TRUNCATED_CHAR_FOUND || pUOut != UOut + 1 || pLIn != LIn + 5)
5300 errorCode = U_ZERO_ERROR;
5303 ucnv_toUnicode(cnv, &pUOut,pUOut+sizeof(UOut)/sizeof(UChar),(const char **)&pLIn,(const char *)(pLIn+5),off,TRUE, &errorCode);
5304 if (UOut[0] != 0xD801 || UOut[1] != 0x1B || U_FAILURE(errorCode) || pUOut != UOut + 2 || pLIn != LIn + 5)
5316 errorCode = U_ZERO_ERROR;
5319 ucnv_toUnicode(cnv, &pUOut,pUOut+sizeof(UOut)/sizeof(UChar),(const char **)&pLIn,(const char *)(pLIn+4),off,TRUE, &errorCode);
5321 if (UOut[0] != 0xD801 || errorCode != U_TRUNCATED_CHAR_FOUND || pUOut != UOut + 1 || pLIn != LIn + 4)
5501 log_data_err("Unable to open converter: iscii-gur got errorCode: %s\n", u_errorName(status));