View Issue Details

IDProjectCategoryView StatusLast Update
0006377Multi Theft Auto : San AndreasServerpublic2011-08-18 11:13
ReporterVincentAssigned Toccw 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.1Fixed in Version1.1 
Summary0006377: outputChatBox long unicode strings are not correctly displayed
Description

http://img4.imageshack.us/img4/4328/screenshot20110817002.png
Look at the screenshot.
Yes, it was taken a day ago on build 3006, but the bug still appears on 3015.
It's a local server, so client and server are the same build and OS.

Steps To Reproduce

Make a server-side script that uses outputChatBox to output a long string, then look at the chatbox.
My one:
function bombom ()
math.randomseed(getTickCount())
local lol = math.random(1,3)
if lol==1 then
outputChatBox ( ">> ????? ?????? ?????? ?????? ?????????? ????? ????? ???????? ??? ?????????????? ?????? AAA-BBBB.ru!", getRootElement(), 5, 190, 5, true )
elseif lol==2 then
outputChatBox ( ">> ?????? ??????? ???? ? ?????? ?????????? ? ??????? AAA-BBBB? ?????? ???? ?????? ?? ????? AAA-BBBB.ru!", getRootElement(), 5, 190, 5, true )
else
outputChatBox ( ">> ???????? ???????, ?? ??????? ?? ??? ?????? ??????. ???????? ?? ??????? ? ????? ?? ??? ?????? ????? ??????? ?????????!", getRootElement(), 5, 190, 5, true )
end
end
setTimer (bombom, 3000, 0)

Additional Information

Do not actually know, MAYBE it's a Russian language related bug, maybe no.
The script is in UTF-8.

TagsNo tags attached.

Relationships

child of 0006375 closed New issues Unicode issues 

Activities

Vincent

2011-08-17 21:49

viewer   ~~0014334

Fail, Russian is not correctly displayed here.
The code of my tiny script may be found in the post:
http://forum.mtasa.com/viewtopic.php?p=363958#p363958

Gamesnert

2011-08-17 21:59

developer   ~~0014336

Confirmed with the Russian outputChatBox from the topic.

An equally long message (in characters, at least) with alphabetical characters did however display correctly. This is probably an issue with unicode.

outputChatBox ( ">> aaaaa bbbbbb cccc? dddddd eeeeeeeeee ffff gggg? hhhhhhhh iii jjjjjjjjjjjjjj kkkkkk lll-mmmm.nn!", getRootElement(), 5, 190, 5, true )

Picard

2011-08-18 00:34

updater   ~~0014337

Issue automatically marked as fixed by mantisbot ( Fixed in http://code.google.com/p/mtasa-blue/source/detail?r=3016 )

Issue History

Date Modified Username Field Change