From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 26 23:51:44 2013 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 717475C6; Sat, 26 Oct 2013 23:51:44 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CE8512A71; Sat, 26 Oct 2013 23:51:43 +0000 (UTC) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:20f:feff:fe0e:7312]) by saturn.lyxys.ka.sub.org (8.14.7/8.14.7) with ESMTP id r9QNjIZA018992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Oct 2013 01:45:18 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.14.7/8.14.7) with ESMTP id r9QNjIX9096579; Sun, 27 Oct 2013 01:45:18 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.14.7/8.14.7/Submit) id r9QNjH9I096578; Sun, 27 Oct 2013 01:45:17 +0200 (CEST) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyxys.ka.sub.org: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Sun, 27 Oct 2013 01:45:17 +0200 From: Wolfgang Zenker To: Eitan Adler Subject: Re: ports/182307: icewm doesn't run on current Message-ID: <20131026234517.GA96480@lyxys.ka.sub.org> References: <201309222252.r8MMqMLc053873@oldred.freebsd.org> <201309222300.r8MN00r2093379@freefall.freebsd.org> <20131008215603.GA25187@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Sun, 27 Oct 2013 01:45:19 +0200 (CEST) Cc: freebsd-ports-bugs@freebsd.org, FreeBSD-gnats-submit@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 23:51:44 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, * Eitan Adler [131014 05:56]: > On Tue, Oct 8, 2013 at 5:56 PM, Wolfgang Zenker > wrote: > > * FreeBSD-gnats-submit@FreeBSD.org [130923 01:00]: > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=182307 > ... > I will try and look into this, but I don't have much time lately. > IMHO its best if this is fixed upstream. I'll try to find out how to submit a bug report upstream, but I have little hope ... In the meantime, I use an ugly hack to remove the failing calls (patch attached) so I can start icewm now. Wolfgang --IS0zKkzwUGydFO0o Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="icewm.patch" *** ylocale.cc.1.3.7_3 2013-10-27 01:11:07.000000000 +0200 --- ylocale.cc 2013-10-27 01:18:09.000000000 +0200 *************** *** 126,133 **** iconv_t YLocale::getConverter (const char *from, const char **&to) { iconv_t cd = (iconv_t) -1; while (NULL != *to) ! if ((iconv_t) -1 != (cd = iconv_open(*to, from))) return cd; else ++to; return (iconv_t) -1; --- 126,137 ---- iconv_t YLocale::getConverter (const char *from, const char **&to) { iconv_t cd = (iconv_t) -1; + char *myfrom = (char *)malloc(1 + strlen(from)); + strcpy(myfrom, from); + char *modptr = strstr(myfrom, "//"); + if (NULL != modptr) *modptr = '\0'; while (NULL != *to) ! if ((iconv_t) -1 != (cd = iconv_open(*to, myfrom))) return cd; else ++to; return (iconv_t) -1; --IS0zKkzwUGydFO0o--