When doing replacetext (or replacetext_char for that matter) on cyrillic texts, uppercase letters are replaced incorrectly.
Numbered Steps to Reproduce Problem:
Try replacing an uppercase cyrillic letter in text with string longer than 1
Code Snippet (if applicable) to Reproduce Problem:
world.log << "[replacetext("Robot working", "r", "hs")]"
world.log << "[replacetext("Работа робота", "р", "хс")]"
world.log << "[replacetext_char("Robot working", "r", "hs")]"
world.log << "[replacetext_char("Работа робота", "р", "хс")]"
(the cyrillic text whish is not shown for some reason is Работа робота, and I'm trying to replace р with хс)
Expected Results:
Hsobot wohsking
Хсабота хсобота
Actual Results:
Hsobot wohsking
ххсабота хсобота
Does the problem occur:
Every time? Or how often?
every time
In other games?
I don't know, tested on SS13 only
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I don't know, I haven't noticed
Workarounds:
doing replacetextEx on two seperate letters, one uppercase and one lowercase