× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Your iiInpLen and iiOutLen fields should NOT be defined with 'const'. The API changes those fields to reflect the space left in each of the buffers as it translates the data.

On 2/3/2010 3:34 PM, Neill Harper wrote:
I have a call to iconv in my program as follows:



D iconvU PR 10U 0 EXTPROC('iconv')
D iaHandle LIKE(ConvHandle) VALUE
D iaInpBuff *
D iiInpLen 10u 0 const
D iaOutBuff *
D iiOutLen 10u 0 const



wrkResult = iconvU(wrkHandle:wrkFrom:wrkFromDataLength:
wrkTo:wrkToDataLength);



When the call happens if there is not enough room in the output buffer then
the wrkResult has 0xFFFFFFFF in it. (-1)





And errorno is 3491 - Argument list too long.



The thing is the conversion has worked fine up to that point, I would be
expecting E2BIG?



Also I originally had the wrkResult coded as 10i 0, but this was causing the
dreaded receiver to small to hold result error.



Does anybody have a any idea whats happening here?



Regards



Neill



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.