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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Fri Dec 28, 2007 8:24 am   

[2.18] Bugs using %proper() with numbers or symbols
 
#say %proper("a")
outputs 'A' as expected

If you try %proper(0) or %proper("0") then it displays a strange character
Same with most numbers actually, and symbols too.

Problem seems to be that %proper is trying to just use the ascii value of a character to turn anything into it's uppercase value

see using
#say %ascii("a"), %ascii(%proper("a"))
#say %ascii("0"), %ascii(%proper("0"))
#say %ascii("-"), %ascii(%proper("-"))

The uppercase of 0 or - should not be 33 ascii characters below their lowercase equivs

Worth noting that the problem doesn't occur with %upper
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jan 07, 2008 11:45 pm   
 
Added to bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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