Remember me

Lost Password?

Register now!


Who's Online
56 user(s) are online (41 user(s) are browsing Forums)

Members: 0
Guests: 56


Support us!


Report message:*

Re: Porting to AmigaOS4 thread

Subject: Re: Porting to AmigaOS4 thread
by Capehill on 2020/11/22 14:32:12


1) I suppose ASLFR_DrawersOnly tag sets mode. Check autodocs to be sure, I don't have one at hand.

2) Which line? I guess options are strlen, strncpy or free. Placing bets on free() because utf-code looks suspicious: first there is malloc to allocate memory (free() would free malloc'd memory) but then out-variable is reassigned and thus is potentially not allocated via malloc() anymore:


char *out = (char *)malloc(dstlen + 1);
if (out) {
if( (out=ICodesets->CodesetsConvertStr(CSA_SourceCodeset, srcmib,

IF CodesetsConvertStr allocates memory using IExec functions then free() most likely crash. You need to check Codesets autodoc regarding what is the meaning of CodesetsConvertStr return value.

3) What happened when you remove the (char*) cast and change utfToLocal function signature to use const char* (both .h/.cpp)?

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project