mirror of
https://github.com/cc65/cc65.git
synced 2025-08-10 04:25:21 +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:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user