×
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.
On 6 February 2017 at 17:06, James H. H. Lampert
<jamesl@xxxxxxxxxxxxxxxxx> wrote:
Found something else:
It seems that on the system where this program is failing, the STMF we're
opening is CCSID 1208.
On another box where it works just fine, the STMF is CCSID 819.
1208 is UTF-8, 819 is PC ASCII.
I decoded the MODE parameter, BTW, and it's O_RDONLY + O_TEXTDATA, with
neither O_CODEPAGE nor O_CCSID.
O_TEXTDATA means 'this is text - convert it between the source and
destination'.
From the manual (which I grant is quite something to slog through):
If O_CCSID is not specified, and the file CCSID and open CCSID are not
the same, and one of them is not strictly single-byte, open() will
fail with errno set to [ECONVERT].
http://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/apis/open.htm
Using CCSIDs and code pages
Since 1208 is not strict SBCS, boom.
Can you post the open() statement? Specifically, what's in the fourth
parameter (conversion ID)?
--buck
As an Amazon Associate we earn from qualifying purchases.
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.