Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6399 closed defect (fixed)

LOL : Crash when subtitles displayed

Reported by: SF/alxtr1bal Owned by: athrxx
Priority: normal Component: Engine: Kyra
Version: Keywords:
Cc: Game: Lands of Lore


Port : Dingux Scummvm 1.6 Lands of Lore CD French DOS

This crash appears only in the French CD version on the dingux, it's working well on the PC in French CD Version. It crashes every time i bump into a wall when the subtitle is displayed (for example : 'You cannot go this way')

crash Log : ./scummvm.bin: libc/misc/ctype/ctype.c: 281:tolower: Assertion '((((unsigned int)((c) -0)) <= ((127*2+1) - 0)) || ((c) == (-1)))' Failed

I recompiled with latest git sources, it's the same thing.

Ticket imported from: #3614957. Ticket imported from: bugs/6399.

Change History (7)

comment:1 by SF/alxtr1bal, 11 years ago

Summary: Crash when subtitles displayedLOL : Crash when subtitles displayed

comment:2 by wjp, 11 years ago

Since you're able to recompile sources, could you test a possible fix?

In engines/kyra/text_rpg.cpp, try replacing the line

char a = tolower(_ctrl[1]);


char a = tolower((unsigned char)_ctrl[1]);

comment:3 by SF/alxtr1bal, 11 years ago

It works, no more crashes.

Well , i don't know why, i have a problem with Write permissions to save a game now... In fact i'm using the dingux port on the gcw zero ...

comment:4 by SF/alxtr1bal, 11 years ago

Ok i managed to save ;) (wrong folder) It's all good !

comment:5 by bluegr, 11 years ago

Owner: set to athrxx

comment:6 by athrxx, 11 years ago

I've committed the fix as proposed by wjp, since it seems to work fine for all versions (including Japanese).

comment:7 by athrxx, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.