Lines Matching refs: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));
1465 UErrorCode errorCode;
1469 errorCode=U_ZERO_ERROR;
1472 ucnv_toUnicode(cnv, &u, u+20, &s, s+3, NULL, TRUE, &errorCode);
1473 if(U_FAILURE(errorCode)) {
1490 ucnv_getName(cnv, &errorCode), outUnicode[2]!=0x5c, isAmbiguous);
1499 log_err("error: ucnv_fixFileSeparator(%s) failed\n", ucnv_getName(cnv, &errorCode));
1835 UErrorCode errorCode=U_ZERO_ERROR;
1836 UConverter *cnv=ucnv_open("UTF-7", &errorCode);
1837 if(U_FAILURE(errorCode)) {
1838 log_data_err("Unable to open a UTF-7 converter: %s\n", u_errorName(errorCode));
1844 cnvName = ucnv_getName(cnv, &errorCode);
1845 if (U_FAILURE(errorCode) || uprv_strcmp(cnvName, "UTF-7") != 0) {
1846 log_err("UTF-7 converter is called %s: %s\n", cnvName, u_errorName(errorCode));
1878 UErrorCode errorCode=U_ZERO_ERROR;
1879 UConverter *cnv=ucnv_open("IMAP-mailbox-name", &errorCode);
1880 if(U_FAILURE(errorCode)) {
1881 log_data_err("Unable to open a IMAP-mailbox-name converter: %s\n", u_errorName(errorCode));
1887 cnvName = ucnv_getName(cnv, &errorCode);
1888 if (U_FAILURE(errorCode) || uprv_strcmp(cnvName, "IMAP-mailbox-name") != 0) {
1889 log_err("IMAP-mailbox-name converter is called %s: %s\n", cnvName, u_errorName(errorCode));
1940 UErrorCode errorCode=U_ZERO_ERROR;
1941 UConverter *cnv=ucnv_open("UTF-8", &errorCode);
1942 if(U_FAILURE(errorCode)) {
1943 log_err("Unable to open a UTF-8 converter: %s\n", u_errorName(errorCode));
1951 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2011 UErrorCode errorCode=U_ZERO_ERROR;
2012 UConverter *cnv=ucnv_open("CESU-8", &errorCode);
2013 if(U_FAILURE(errorCode)) {
2014 log_data_err("Unable to open a CESU-8 converter: %s\n", u_errorName(errorCode));
2022 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2063 UErrorCode errorCode=U_ZERO_ERROR;
2064 UConverter *cnv=ucnv_open("UTF-16", &errorCode);
2065 if(U_FAILURE(errorCode)) {
2066 log_err("Unable to open a UTF-16 converter: %s\n", u_errorName(errorCode));
2111 UErrorCode errorCode=U_ZERO_ERROR;
2112 UConverter *cnv=ucnv_open("utf-16be", &errorCode);
2113 if(U_FAILURE(errorCode)) {
2114 log_err("Unable to open a UTF16-BE converter: %s\n", u_errorName(errorCode));
2123 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2165 UErrorCode errorCode=U_ZERO_ERROR;
2166 UConverter *cnv=ucnv_open("utf-16le", &errorCode);
2167 if(U_FAILURE(errorCode)) {
2168 log_err("Unable to open a UTF16-LE converter: %s\n", u_errorName(errorCode));
2177 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2231 UErrorCode errorCode=U_ZERO_ERROR;
2232 UConverter *cnv=ucnv_open("UTF-32", &errorCode);
2233 if(U_FAILURE(errorCode)) {
2234 log_data_err("Unable to open a UTF-32 converter: %s\n", u_errorName(errorCode));
2307 UErrorCode errorCode=U_ZERO_ERROR;
2308 UConverter *cnv=ucnv_open("UTF-32BE", &errorCode);
2309 if(U_FAILURE(errorCode)) {
2310 log_data_err("Unable to open a UTF-32BE converter: %s\n", u_errorName(errorCode));
2319 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2378 UErrorCode errorCode=U_ZERO_ERROR;
2379 UConverter *cnv=ucnv_open("UTF-32LE", &errorCode);
2380 if(U_FAILURE(errorCode)) {
2381 log_data_err("Unable to open a UTF-32LE converter: %s\n", u_errorName(errorCode));
2390 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_SKIP, NULL, &cb, &p, &errorCode);
2511 UErrorCode errorCode=U_ZERO_ERROR;
2512 UConverter *cnv=ucnv_open("LATIN_1", &errorCode);
2513 if(U_FAILURE(errorCode)) {
2514 log_data_err("Unable to open a LATIN_1 converter: %s\n", u_errorName(errorCode));
2542 UErrorCode errorCode=U_ZERO_ERROR;
2543 UConverter *cnv=ucnv_open("x-mac-turkish", &errorCode);
2544 if(U_FAILURE(errorCode)) {
2545 log_data_err("Unable to open a SBCS(x-mac-turkish) converter: %s\n", u_errorName(errorCode));
2584 UErrorCode errorCode=U_ZERO_ERROR;
2586 UConverter *cnv=my_ucnv_open("@ibm9027", &errorCode);
2587 if(U_FAILURE(errorCode)) {
2588 log_data_err("Unable to open a DBCS(@ibm9027) converter: %s\n", u_errorName(errorCode));
2602 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2635 UErrorCode errorCode=U_ZERO_ERROR;
2637 UConverter *cnv=ucnv_open("ibm-1363", &errorCode);
2638 if(U_FAILURE(errorCode)) {
2639 log_data_err("Unable to open a MBCS(ibm-1363) converter: %s\n", u_errorName(errorCode));
2653 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2745 UErrorCode errorCode=U_ZERO_ERROR;
2748 cnv=ucnv_open("ISO_2022", &errorCode);
2749 if(U_FAILURE(errorCode)) {
2750 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
2761 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
2789 UErrorCode errorCode=U_ZERO_ERROR;
2805 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,NULL,FALSE, &errorCode);
2806 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2807 errorCode=U_ZERO_ERROR;
2811 if(U_FAILURE(errorCode)){
2812 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2821 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,NULL,FALSE,&errorCode);
2822 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2823 errorCode=U_ZERO_ERROR;
2826 if(U_FAILURE(errorCode)){
2827 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2856 UErrorCode errorCode=U_ZERO_ERROR;
2866 numCharsInTarget=ucnv_fromUChars(cnv, cTarget, (int32_t)(cTargetLimit-cTarget), uSource, (int32_t)(uSourceLimit-uSource), &errorCode);
2867 if(U_FAILURE(errorCode)){
2868 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
2873 ucnv_toUChars(cnv,uTarget,(int32_t)(uTargetLimit-uTarget),cSource,numCharsInTarget,&errorCode);
2874 if(U_FAILURE(errorCode)){
2875 log_err("ucnv_toUChars conversion failed, reason %s\n", u_errorName(errorCode));
2906 UErrorCode errorCode=U_ZERO_ERROR;
2925 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,NULL,FALSE, &errorCode);
2926 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2927 errorCode=U_ZERO_ERROR;
2931 if(U_FAILURE(errorCode)){
2932 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2943 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,NULL,FALSE,&errorCode);
2944 if(errorCode==U_BUFFER_OVERFLOW_ERROR){
2945 errorCode=U_ZERO_ERROR;
2948 if(U_FAILURE(errorCode)){
2949 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
2971 UErrorCode errorCode=U_ZERO_ERROR;
2976 c=ucnv_getNextUChar(cnv, &s, limit, &errorCode);
2977 if(errorCode==U_INDEX_OUTOFBOUNDS_ERROR) {
2979 } else if(U_FAILURE(errorCode)) {
2980 log_err("%s ucnv_getNextUChar() failed: %s\n", message, u_errorName(errorCode));
3096 UErrorCode errorCode=U_ZERO_ERROR;
3100 cnv=ucnv_open("HZ", &errorCode);
3101 if(U_FAILURE(errorCode)) {
3102 log_data_err("Unable to open HZ converter: %s\n", u_errorName(errorCode));
3114 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3115 if(U_FAILURE(errorCode)){
3116 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3123 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3124 if(U_FAILURE(errorCode)){
3125 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3315 UErrorCode errorCode=U_ZERO_ERROR;
3319 cnv=ucnv_open("ISO_2022_JP_1", &errorCode);
3320 if(U_FAILURE(errorCode)) {
3321 log_data_err("Unable to open an ISO_2022_JP_1 converter: %s\n", u_errorName(errorCode));
3333 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3334 if(U_FAILURE(errorCode)){
3335 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3342 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3343 if(U_FAILURE(errorCode)){
3344 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3381 UErrorCode errorCode=U_ZERO_ERROR;
3385 cnv=my_ucnv_open(conv, &errorCode);
3386 if(U_FAILURE(errorCode)) {
3387 log_data_err("Unable to open a %s converter: %s\n", conv, u_errorName(errorCode));
3399 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3400 if(U_FAILURE(errorCode)){
3401 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3409 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3410 if(U_FAILURE(errorCode)){
3411 log_err("ucnv_toUnicode conversion failed, reason: %s\n", u_errorName(errorCode));
3434 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3435 if(U_FAILURE(errorCode)){
3436 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3858 UErrorCode errorCode=U_ZERO_ERROR;
3861 cnv=ucnv_open("ISO_2022_JP_1", &errorCode);
3862 if(U_FAILURE(errorCode)) {
3863 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
3875 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,NULL,TRUE, &errorCode);
3876 if(U_FAILURE(errorCode)){
3877 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3883 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,NULL,TRUE,&errorCode);
3884 if(U_FAILURE(errorCode)){
3885 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
3898 cnv=ucnv_open("ISO_2022,locale=jp,version=1", &errorCode);*/
3947 UErrorCode errorCode=U_ZERO_ERROR;
3951 cnv=ucnv_open("ISO_2022_JP_2", &errorCode);
3952 if(U_FAILURE(errorCode)) {
3953 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
3965 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
3966 if(U_FAILURE(errorCode)){
3967 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
3974 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
3975 if(U_FAILURE(errorCode)){
3976 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4024 UErrorCode errorCode=U_ZERO_ERROR;
4028 cnv=ucnv_open("ISO_2022,locale=kr", &errorCode);
4029 if(U_FAILURE(errorCode)) {
4030 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4042 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4043 if(U_FAILURE(errorCode)){
4044 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4051 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4052 if(U_FAILURE(errorCode)){
4053 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4073 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
4103 UErrorCode errorCode=U_ZERO_ERROR;
4107 cnv=ucnv_open("ibm-25546", &errorCode);
4108 if(U_FAILURE(errorCode)) {
4109 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4121 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4122 if(U_FAILURE(errorCode)){
4123 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4130 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4131 if(U_FAILURE(errorCode)){
4132 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4153 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
4166 UErrorCode errorCode = U_ZERO_ERROR;
4170 kr=ucnv_open("iso-2022-kr", &errorCode);
4171 if(U_FAILURE(errorCode)) {
4172 log_data_err("Unable to open a iso-2022-kr converter: %s\n", u_errorName(errorCode));
4175 ucnv_toUnicode(kr,&target,targetLimit,&source,source+uprv_strlen(source),NULL,TRUE,&errorCode);
4176 if(U_FAILURE(errorCode)) {
4177 log_err("iso-2022-kr cannot handle multiple escape sequences : %s\n", u_errorName(errorCode));
4180 kr1 = ucnv_open("ibm-25546", &errorCode);
4181 if(U_FAILURE(errorCode)) {
4182 log_data_err("Unable to open a iso-2022-kr_1 converter: %s\n", u_errorName(errorCode));
4187 ucnv_toUnicode(kr,&target,targetLimit,&source,source+uprv_strlen(source),NULL,TRUE,&errorCode);
4189 if(U_FAILURE(errorCode)) {
4190 log_err("iso-2022-kr_1 cannot handle multiple escape sequences : %s\n", u_errorName(errorCode));
4409 UErrorCode errorCode=U_ZERO_ERROR;
4413 cnv=ucnv_open("ISO_2022,locale=cn,version=1", &errorCode);
4414 if(U_FAILURE(errorCode)) {
4415 errorCode));
4427 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4428 if(U_FAILURE(errorCode)){
4429 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4436 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4437 if(U_FAILURE(errorCode)){
4438 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4508 UErrorCode errorCode=U_ZERO_ERROR;
4512 cnv=ucnv_open("ISO_2022,locale=cn,version=0", &errorCode);
4513 if(U_FAILURE(errorCode)) {
4514 log_data_err("Unable to open a iso-2022 converter: %s\n", u_errorName(errorCode));
4526 ucnv_fromUnicode( cnv , &cTarget, cTargetLimit,&uSource,uSourceLimit,myOff,TRUE, &errorCode);
4527 if(U_FAILURE(errorCode)){
4528 log_err("ucnv_fromUnicode conversion failed reason %s\n", u_errorName(errorCode));
4535 ucnv_toUnicode(cnv,&uTarget,uTargetLimit,&cSource,cSourceLimit,myOff,TRUE,&errorCode);
4536 if(U_FAILURE(errorCode)){
4537 log_err("ucnv_toUnicode conversion failed reason %s\n", u_errorName(errorCode));
4670 UErrorCode errorCode=U_ZERO_ERROR;
4671 UConverter *cnv=ucnv_open("ibm-930", &errorCode);
4672 if(U_FAILURE(errorCode)) {
4673 log_data_err("Unable to open a EBCDIC_STATEFUL(ibm-930) converter: %s\n", u_errorName(errorCode));
4746 UErrorCode errorCode=U_ZERO_ERROR;
4747 UConverter *cnv=ucnv_open("gb18030", &errorCode);
4748 if(U_FAILURE(errorCode)) {
4749 log_data_err("Unable to open a gb18030 converter: %s\n", u_errorName(errorCode));
4855 UErrorCode errorCode=U_ZERO_ERROR;
4858 cnv1=ucnv_open(NAME_LMBCS_1, &errorCode);
4859 if(U_FAILURE(errorCode)) {
4860 log_data_err("Unable to open a LMBCS-1 converter: %s\n", u_errorName(errorCode));
4863 cnv2=ucnv_open(NAME_LMBCS_2, &errorCode);
4864 if(U_FAILURE(errorCode)) {
4865 log_data_err("Unable to open a LMBCS-2 converter: %s\n", u_errorName(errorCode));
4870 get_name = ucnv_getName (cnv1, &errorCode);
4874 get_name = ucnv_getName (cnv2, &errorCode);
4880 ucnv_getSubstChars (cnv1, get_subchars, &len, &errorCode);
4881 if(U_FAILURE(errorCode)) {
4882 errorCode));
4890 ucnv_setSubstChars (cnv2,new_subchars, len, &errorCode);
4891 if(U_FAILURE(errorCode)) {
4892 log_err("Failure on set subst chars: %s\n", u_errorName(errorCode));
4894 ucnv_getSubstChars (cnv2, get_subchars, &len, &errorCode);
4895 if(U_FAILURE(errorCode)) {
4896 log_err("Failure on get subst chars: %s\n", u_errorName(errorCode));
4911 UErrorCode errorCode=U_ZERO_ERROR;
4929 cnv=ucnv_open("lmbcs", &errorCode); /* use generic name for LMBCS-1 */
4930 if(U_FAILURE(errorCode)) {
4931 log_data_err("Unable to open a LMBCS converter: %s\n", u_errorName(errorCode));
4944 &errorCode);
4965 UErrorCode errorCode=U_ZERO_ERROR;
4968 cnv=ucnv_open("LMBCS-1", &errorCode);
4969 if(U_FAILURE(errorCode)) {
4970 log_data_err("Unable to open a LMBCS-1 converter: %s\n", u_errorName(errorCode));
4978 uniChar=ucnv_getNextUChar(cnv, &source, source + (off[1] - off[0]), &errorCode);
4979 if(U_FAILURE(errorCode)) {
4980 log_err("LMBCS-1 ucnv_getNextUChar() failed: %s\n", u_errorName(errorCode));
4995 UErrorCode errorCode=U_ZERO_ERROR;
4996 UConverter *cnv16he = ucnv_open("LMBCS-16,locale=he", &errorCode);
4997 UConverter *cnv16jp = ucnv_open("LMBCS-16,locale=ja_JP", &errorCode);
4998 UConverter *cnv01us = ucnv_open("LMBCS-1,locale=us_EN", &errorCode);
5010 NULL, 1, &errorCode);
5022 NULL, 1, &errorCode);
5036 NULL, 1, &errorCode);
5037 if (U_FAILURE(errorCode) || pLMBCSOut != (const char *)lmbcsString+1 || pUniIn != uniString+1 || uniString[0] != 0xFF6E)
5047 NULL, 1, &errorCode);
5048 if (U_FAILURE(errorCode) || pLMBCSIn != (const char *)lmbcsString+3 || pUniOut != uniString+1
5058 NULL, 1, &errorCode);
5059 if (U_FAILURE(errorCode) || pLMBCSOut != (const char *)lmbcsString+3 || pUniIn != uniString+1 || uniString[0] != 0xFF6E)
5068 NULL, 1, &errorCode);
5069 if (U_FAILURE(errorCode) || pLMBCSIn != (const char *)lmbcsString+1 || pUniOut != uniString+1 || lmbcsString[0] != 0xAE)
5080 UErrorCode errorCode=U_ZERO_ERROR;
5091 cnv = ucnv_open(NAME_LMBCS_1, &errorCode);
5092 if(U_FAILURE(errorCode)) {
5093 log_err("Unable to open a LMBCS-1 converter: %s\n", u_errorName(errorCode));
5098 while ((pSource < sourceLimit) && U_SUCCESS (errorCode))
5107 &errorCode);
5109 if (U_SUCCESS (errorCode))
5126 log_err("Unexpected Error on toUnicode: %s\n", u_errorName(errorCode));
5146 errorCode=U_ZERO_ERROR;
5150 ucnv_fromUnicode(cnv, &pLOut, pLOut+1, &pUIn, pUIn-1, off, FALSE, &errorCode);
5151 if (errorCode != U_ILLEGAL_ARGUMENT_ERROR)
5153 log_err("Unexpected Error on negative source request to ucnv_fromUnicode: %s\n", u_errorName(errorCode));
5157 errorCode=U_ZERO_ERROR;
5158 ucnv_toUnicode(cnv, &pUOut,pUOut+1,(const char **)&pLIn,(const char *)(pLIn-1),off,FALSE, &errorCode);
5159 if (errorCode != U_ILLEGAL_ARGUMENT_ERROR)
5161 log_err("Unexpected Error on negative source request to ucnv_toUnicode: %s\n", u_errorName(errorCode));
5163 errorCode=U_ZERO_ERROR;
5165 uniChar = ucnv_getNextUChar(cnv, (const char **)&pLIn, (const char *)(pLIn-1), &errorCode);
5166 if (errorCode != U_ILLEGAL_ARGUMENT_ERROR)
5168 log_err("Unexpected Error on negative source request to ucnv_getNextUChar: %s\n", u_errorName(errorCode));
5170 errorCode=U_ZERO_ERROR;
5173 ucnv_toUnicode(cnv, &pUOut,pUOut+1,(const char **)&pLIn,(const char *)pLIn,off,FALSE, &errorCode);
5174 ucnv_fromUnicode(cnv, &pLOut,pLOut+1,&pUIn,pUIn,off,FALSE, &errorCode);
5175 if(U_FAILURE(errorCode)) {
5176 log_err("0 byte source request: unexpected error: %s\n", u_errorName(errorCode));
5183 uniChar = ucnv_getNextUChar(cnv, (const char **)&pLIn, (const char *)pLIn, &errorCode);
5184 if (errorCode != U_INDEX_OUTOFBOUNDS_ERROR)
5186 log_err("Unexpected Error on 0-byte source request to ucnv_getnextUChar: %s\n", u_errorName(errorCode));
5192 errorCode = U_ZERO_ERROR;
5197 ucnv_fromUnicode(cnv, &pLOut,pLOut+offsets[4],&pUIn,pUIn+UPRV_LENGTHOF(pszUnicode),off,FALSE, &errorCode);
5198 if (errorCode != U_BUFFER_OVERFLOW_ERROR || pLOut != LOut + offsets[4] || pUIn != pszUnicode+4 )
5203 errorCode = U_ZERO_ERROR;
5206 ucnv_toUnicode(cnv, &pUOut,pUOut+4,&pLIn,(pLIn+sizeof(pszLMBCS)),off,FALSE, &errorCode);
5207 if (errorCode != U_BUFFER_OVERFLOW_ERROR || pUOut != UOut + 4 || pLIn != (const char *)pszLMBCS+offsets[4])
5221 errorCode = U_ZERO_ERROR;
5224 ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, &errorCode);
5225 ucnv_toUnicode(cnv, &pUOut,pUOut+UPRV_LENGTHOF(UOut),(const char **)&pLIn,(const char *)(pLIn+5),off,TRUE, &errorCode);
5226 if (UOut[0] != 0xD801 || errorCode != U_TRUNCATED_CHAR_FOUND || pUOut != UOut + 1 || pLIn != LIn + 5)
5236 errorCode = U_ZERO_ERROR;
5239 ucnv_toUnicode(cnv, &pUOut,pUOut+UPRV_LENGTHOF(UOut),(const char **)&pLIn,(const char *)(pLIn+3),off,TRUE, &errorCode);
5240 if (UOut[0] != 0xD801 || U_FAILURE(errorCode) || pUOut != UOut + 1 || pLIn != LIn + 3)
5253 errorCode = U_ZERO_ERROR;
5256 ucnv_toUnicode(cnv, &pUOut,pUOut+UPRV_LENGTHOF(UOut),(const char **)&pLIn,(const char *)(pLIn+6),off,TRUE, &errorCode);
5257 if (UOut[0] != 0xD801 || UOut[1] != 0xC9D0 || U_FAILURE(errorCode) || pUOut != UOut + 2 || pLIn != LIn + 6)
5270 errorCode = U_ZERO_ERROR;
5273 ucnv_toUnicode(cnv, &pUOut,pUOut+UPRV_LENGTHOF(UOut),(const char **)&pLIn,(const char *)(pLIn+5),off,TRUE, &errorCode);
5274 if (UOut[0] != 0xD801 || errorCode != U_TRUNCATED_CHAR_FOUND || pUOut != UOut + 1 || pLIn != LIn + 5)
5287 errorCode = U_ZERO_ERROR;
5290 ucnv_toUnicode(cnv, &pUOut,pUOut+UPRV_LENGTHOF(UOut),(const char **)&pLIn,(const char *)(pLIn+5),off,TRUE, &errorCode);
5291 if (UOut[0] != 0xD801 || UOut[1] != 0x1B || U_FAILURE(errorCode) || pUOut != UOut + 2 || pLIn != LIn + 5)
5303 errorCode = U_ZERO_ERROR;
5306 ucnv_toUnicode(cnv, &pUOut,pUOut+UPRV_LENGTHOF(UOut),(const char **)&pLIn,(const char *)(pLIn+4),off,TRUE, &errorCode);
5308 if (UOut[0] != 0xD801 || errorCode != U_TRUNCATED_CHAR_FOUND || pUOut != UOut + 1 || pLIn != LIn + 4)
5494 log_data_err("Unable to open converter: iscii-gur got errorCode: %s\n", u_errorName(status));