[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
Re: [XaraXtreme-dev] libiconv
- From: Luke Hart <lukeh@xxxxxxxx>
- Date: Wed, 26 Apr 2006 15:43:18 +0100
- Subject: Re: [XaraXtreme-dev] libiconv
Alex Bligh wrote:
Phil Martin wrote:
That's exactly the question that I have been thinking about too.
I've searched the code but can't find anything directly referring to
it. Not sure how to find where it's being pulled into the build.
In general: the more external libraries we pull in, the more
difficult it is to build the program and in particular to build
Universal Binaries on the Mac.
OK, it seems to me this is only being used by localenv.cpp. It uses
it for three things: returning the thousands separator, decimal
separator, and standard number of decimal places. The latter is
not very useful (it's only useful for currency), and indeed though
convert.cpp calls it, it discards the return value.
So I would like to propose converting this over to use
wxLocale::GetInfo(), which returns the former two OK, and
using the fixed value 2 (for the latter) on non-MSW platforms.
This should remove the libiconv dependency. Will this suit?
Alex
It seems that anything with BSD in its heritage dislikes giving out this
information. This will be the 2nd change to this area caused by a BSD
related operating system.
I was thinking it was this code, but the man page didn't mention that
these functions needed an extra library (possibly because they are in
glibc on Linux) so I didn't mention it.
Luke