|
I have this code snippet: <code> @temp = %addr(temp); nbyte = %size(temp); fd = open(%trim(pr_path):O_RDONLY); if fd < 0; pr_status = %char(errno); EscErrno(errno); endif; // read the file into a var i = read(fd:@temp:nbyte); if i < 0; pr_status = %char(errno); EscErrno(errno); endif; </code> If I do a wrklnk on an IFS file, I see this: GIF89a ÷ ÿÿÿðíîGFG... But in debug, my temp variable contains this: åñã / 7 0ÒÓåãå x¿ÝzÞ^xÐÞ ~xzwÝ(r) (í ... Not nearly the same. What am I missing? If is a codepage issue? Kyle
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.