From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: [PATCH][1.1.3.2] keystroke - option P not working (unicode keyboard) Date: Sun, 04 Aug 2002 05:37:26 +0400 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <3D4C8556.8060500@yahoo.com> Reply-To: stas.orel@mailcity.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000807070208020701050306" Return-path: List-Id: To: linux-msdos@vger.kernel.org This is a multi-part message in MIME format. --------------000807070208020701050306 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Hello. Per Jessen wrote: > attached is a patch for the \P on the keystroke > config option not working with the unicode keyboard It's a very late night here and I have looked neither in the code nor in the problem, but somehow it happened that I don't like your patch (sorry). I'll have a look tomorrow but for now please check if the attached patch fixes your problem. --------------000807070208020701050306 Content-Type: text/plain; name="strtol.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="strtol.diff" --- src/plugin/translate/unicode_utils.c Sun Jun 16 18:30:20 2002 +++ src/plugin/translate/unicode_utils.c Sun Aug 4 05:27:50 2002 @@ -97,7 +97,7 @@ sign = 1; result = 0; - if ((base < 2) || (base > 36)) { + if (base && ((base < 2) || (base > 36))) { if (endptr) { *endptr = (t_unicode *)ptr; } --------------000807070208020701050306--