1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 21:29:03 +00:00

Translate chars returned by .strat into the target charset

git-svn-id: svn://svn.cc65.org/cc65/trunk@509 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-12-01 10:37:41 +00:00
parent d2e5de4270
commit a5d8a5a94f

View File

@ -364,8 +364,10 @@ static int FuncStrAt (void)
return 0;
}
/* Return the char, handle as unsigned */
return (unsigned char) Str[(size_t)Index];
/* Return the char, handle as unsigned. Be sure to translate it into
* the target character set.
*/
return (unsigned char) TgtTranslateChar (Str [(size_t)Index]);
}