From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NEUTRAL autolearn=no version=3.2.5 Message-ID: <49E7C0F3.7080800@gmail.com> Date: Fri, 17 Apr 2009 03:36:19 +0400 From: Alexey Gladkov User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8.1.18) Gecko/20081202 Thunderbird/2.0.0.18 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Linux console tools development discussion References: <20090414174549.GA4174@graeme> In-Reply-To: <20090414174549.GA4174@graeme> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [kbd] =?utf-8?q?=5BPATCH=5D_loadkeys=3A_Auto-convert_=E2=80=9Ctra?= =?utf-8?q?ditional=E2=80=9D/Unicode_keysyms?= X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 23:36:40 -0000 Archived-At: List-Archive: 14.04.2009 21:45, Michael Schutte wrote: > @@ -1700,7 +1695,7 @@ set_charset(const char *charset) { > if(p->name[0]) > syms[0].table[i] = p->name; > } > - chosen_charset = charset; > + chosen_charset = strdup(charset); > return 0; > } > } You have memory leak here. Try this for example: ./dumpkeys -c koi8-r -c koi8-u -c mazovia -c cp-1250 -n -- Rgrds, legion