TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Unicode characters counted incorrectly for line length

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
avidal



Joined: 04 Feb 2014
Posts: 7

PostPosted: Wed Mar 21, 2018 4:16 pm    Post subject: Unicode characters counted incorrectly for line length Reply with quote

I'm copying this from an issue someone filed on the Github mirror

Quote:

Hey Scandum.

The error seems to be that, when calculating whether or not to move to the next line, Unicode characters are counted per byte rather than per character.

The effect of this is if I, for example, use character U+25F4 (white circle with upper left quadrant) repeatedly, then I get roughtly a third of the way across the screen before it starts printing on the next line.

There's a bit of an overlap when using values 0x80-0xFF vs. Unicode characters, but we have a way out: ESC % G / ESC % @ can be used to shift in and out of a UTF-8 character set (see my favourite source http://invisible-island.net/xterm/ctlseqs/ctlseqs.html). This is reasonably portable across terminals.

Also, the register button on your Sourceforge forums is broken, or I'd mention this there. And so is MudBytes' password reset -.-
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3844

PostPosted: Thu Mar 22, 2018 9:00 pm    Post subject: Reply with quote

Thanks, he probably forgot to use: #config charset UTF-8

The beta release tries to figure out the charset automatically.

I still have to make time to look into the registration issue.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group