Bug 10550 - Ability to make use of 3rd-party gconv modules
Summary: Ability to make use of 3rd-party gconv modules
Status: RESOLVED WONTFIX
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 minor
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-23 15:18 UTC by Andrew Zabolotny
Modified: 2014-07-01 07:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Zabolotny 2009-08-23 15:18:09 UTC
Although iconv supports a lot of encodings, there are lots of marginal encodings
that does not have much sense to include into mainstream. For example, almost
every manufacturer of character LCD controllers makes his own encodings (e.g.
Hitachi, Winstar and so on), and it would be handy to be able to install
additional gconv modules to get basic support for those encodings. Then, one
would be able to use them by using the -fexec-charset option of gcc which would
be very handy.

Unfortunately there are a few problems with installing additional gconv modules
(which do not compile together with glibc).

One of them is that the iconvconfig tool which is used to generate the
gconv-modules.cache file is used internally during glibc building, but is not
installed. Thus there's no way to update the cache file which is in a binary
format (this would be normally done in a postinst section of a package, just
like with gtk-update-icon-cache and other tools).

Another is the mandatory usage of the PTR_DEMANGLE macro in conversion
functions. The sysdep.h file is not meant to be installed in end user's system,
so there's no way to know how to demangle next_step->__shlib_handle.

Is it possible to do something about these issues? Or is there some alternative
solution?
Comment 1 Ulrich Drepper 2009-10-30 04:52:59 UTC
iconvconfig is installed.  And you'll have to deal with PTR_DEMANGLE etc
yourself.  Replicate the definitions.