Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
days1988
Newbie


Joined: 17 Mar 2005
Posts: 3

PostPosted: Thu Mar 17, 2005 9:33 am   

Is it a bug? Trouble with using DBCS characters in variables
 
I got trouble with using DBCS characters in variables, if the strings contains character 0xbf. For example:

#va test "口"
#sh @test


I got "Z" output from the mud windows, it should be "口" (a chinese word).
When I check the variables from the Edit Variable window, the Value of test is "口".

another example:

#va test %char(191)+"111"
#sh @test


it should be get "?111", but it is "?11"

waitting for your help!
thanks
Reply with quote
Spartacus
Wanderer


Joined: 23 Apr 2001
Posts: 53
Location: USA

PostPosted: Thu Mar 17, 2005 8:51 pm   
 
Do you have a DBCS capable font selected for your mud output window?
_________________
Spartacus
rm -rf .*
Reply with quote
days1988
Newbie


Joined: 17 Mar 2005
Posts: 3

PostPosted: Fri Mar 18, 2005 2:46 am   sure, I have
 
I am using Windows XP Chinese Edition.

thanks for your reply.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Mar 18, 2005 5:32 am   
 
Zmud doesnt support multi-byte languages which I believe is what chinese is.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
days1988
Newbie


Joined: 17 Mar 2005
Posts: 3

PostPosted: Fri Mar 18, 2005 2:42 pm   
 
Quote:
Zmud doesnt support multi-byte languages which I believe is what chinese is.


It not only affect multi-byte languages but also affect single-byte languages. for example:

I try the same things in zmud 5.55 and zmud 7.05a, but I got different result:

#va test %char(191)
#va test1 %char(191)zmud


Version 5.55' s result is correct: @test=¿, @test1=¿zmud

Version 7.05a' s result is ERROR: @test=¿, @test1=úmud

I believe there is a bug exist in 7.05a, when parsing a string begin with ASCII code 191(0xbf).
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net