KpyM Telnet/SSH Server - Forum
Possible error in default utf-8.ini configuration file
dc294 Possible error in default utf-8.ini configuration file
 
Great application.

During some of my augmentation of the program I found that input11 in utf-8.ini is commented out but the associated key11 is not. Is this intended?


dc294 Possible alternative fix
 
A possible fix for this would be to check in KKey::Load in the for loop to see if k.client =="". This would also require a change in KIni::GetHexKey on line:

if( buff == "" ) return( true );

to not only return true but also set "value" to = "".

Returning false is an alternative method and then just handle a gracious exit.

This may have other unintended consequences in the rest of the program.


Kroum Grigorov
 
> I found that input11 in utf-8.ini is commented out but the associated key11 is not. Is this intended?

Yes, input11 is actually CTRL+C and this is processed separately in KTelnet::Consume_ctrl_c. This is because CTRL+C is a kind of special "sygnal" and not just a key combo.

> A possible fix for this would be to check in KKey::Load in the for loop to see if k.client =="".

At first sight I don't think you need this, because the blank "inputs" are filtered later in the KKey::Consume loop.

Kroum


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group