From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4608 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: CP850 & IBM850 codepages Date: Tue, 25 Feb 2014 17:25:57 -0500 Message-ID: <20140225222557.GH184@brightrain.aerifal.cx> References: <530D0EA5.8080904@fairlite.co.uk> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1393367164 7624 80.91.229.3 (25 Feb 2014 22:26:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 22:26:04 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4612-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 25 23:26:14 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WIQS4-0005D9-Rx for gllmg-musl@plane.gmane.org; Tue, 25 Feb 2014 23:26:12 +0100 Original-Received: (qmail 13620 invoked by uid 550); 25 Feb 2014 22:26:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13612 invoked from network); 25 Feb 2014 22:26:11 -0000 Content-Disposition: inline In-Reply-To: <530D0EA5.8080904@fairlite.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4608 Archived-At: On Tue, Feb 25, 2014 at 09:44:05PM +0000, Alan Hourihane wrote: > Hi all, > > First post to the list, so thank you for musl. > > I was just compiling samba against musl and got this..... > > checking for iconv in /usr/lib... yes > checking can we convert from CP850 to UCS2-LE?... no > checking can we convert from IBM850 to UCS2-LE?... no > checking can we convert from ASCII to UCS2-LE?... ASCII > checking can we convert from UTF-8 to UCS2-LE?... UTF-8 > checking for iconv in /usr/local/lib... yes > checking can we convert from CP850 to UCS2-LE?... no > checking can we convert from IBM850 to UCS2-LE?... no > checking can we convert from ASCII to UCS2-LE?... ASCII > checking can we convert from UTF-8 to UCS2-LE?... UTF-8 > configure: WARNING: Sufficient support for iconv function was not found. > Install libiconv from http://freshmeat.net/projects/libiconv/ > for better charset compatibility! > > Looking at the code we're missing the "cp850" and "ibm850" codepages. > > I'm not sure how they are derived in the musl source though. > > Any help appreciated. In the immediate, I think your best course of action would be to see if you can just override these tests. It seems unlikely to me that you would really need conversion from these legacy codepages for normal usage of samba. (BTW I'm surprised nobody else has reported this before... does anybody else know why it hasn't come up..?) Adding cp850 and other DOS codepages should not be hard and should not take up much additional size in iconv, but it's also nontrivial to do without my tools to generate the tables, which are not published. Publishing them is something I should really get around to doing, since their absence affects the ability of others to modify the code in meaningful ways; I need to apologize for not doing so already. Rich