On Oct 17, 2011, at 4:44 PM, Heiko Hund wrote:

> Aivo
> 
> On Friday 14 October 2011 09:34:38 Samuli Seppänen wrote:
>>> Would it be possible to patch OpenVPN in some way, so that the umlaut
>>> characters doesn't get stripped in the management interface … or perhaps
>>> there's some other, more robust way of handling such kind of smart-card
>>> authentication?
>> 
>> James, who is responsible for the management interface, can probably fix
>> this easily.
> 
> Have you checked with git master. I believe commit 
> 2627335ac2605d0987a68ce97a0a2c4efbe25159 should have fixed most of the non-
> ASCII charset related problems.

You mean this one? 
http://openvpn.git.sourceforge.net/git/gitweb.cgi?p=openvpn/openvpn.git;a=commitdiff;h=2627335ac2605d0987a68ce97a0a2c4efbe25159

--- a/buffer.c
+++ b/buffer.c
@@ -720,7 +720,7 @@ char_class (const unsigned char c, const unsigned int flags)
     return true;
   if ((flags & CC_DIGIT) && isdigit (c))
     return true;
-  if ((flags & CC_PRINT) && (isprint (c) || c >= 0x7f)) /* allow UTF-8 */
+  if ((flags & CC_PRINT) && (c >= 32)) /* allow ascii non-control and UTF-8 */

Thanks, I will try to compile this and plug this version into the Viscosity 
client program and see what happens.

-- 
Aivo Jürgenson, aivo.jurgen...@gmail.com


Reply via email to