View Issue Details

IDProjectCategoryView StatusLast Update
0000748LDMudEfunspublic2010-06-03 15:01
Reporter_xtian_ Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionnot fixable 
Summary0000748: feature: list of possible charsets for convert_charset()
DescriptionIt would be nice to be able to get a list of valid charsets (array of string) for convert_charset() at runtime. Either as a efun or as a define, maybe.

With that information we wouldn't need to hard-code the choices (probably 2-3 custom charset) and players would be more flexible.
TagsNo tags attached.
External Data (URL)

Activities

zesstra

2010-04-29 15:50

administrator   ~0001859

As far as I know, the supported charsets depend fully on the iconv implementation (usually libc or libiconv) installed on the system. To be useful, such a list must be supplied by the lib. Unfortunately I don't really know, if there is a portable way for getting such a list. Does anybody else know?

_xtian_

2010-04-30 00:29

reporter   ~0001860

Hm, yes. And since the charset types are standard anyway, my whole request might be irrelevant.

Gnomi

2010-04-30 01:07

manager   ~0001861

I have looked at the implementation of 'iconv -l' in the glibc and it uses some internal (undocumented) functions to get the names (e.g. __gconv_get_alias_db()), so I suppose there isn't a portable way.

zesstra

2010-05-03 14:43

administrator   ~0001865

That seems to be true. libiconv also get it from a undocumented function (differently named of course).
So, I would suggest to close the issue as CANTFIX. But we may add a hint to the manpage, that the real capabilities of convert_charset() are system-dependent.

zesstra

2010-06-03 15:01

administrator   ~0001867

I added a note about the host system dependency to the manpages and close this now as suggested earlier.

Issue History

Date Modified Username Field Change
2010-04-27 05:35 _xtian_ New Issue
2010-04-29 15:50 zesstra Note Added: 0001859
2010-04-30 00:29 _xtian_ Note Added: 0001860
2010-04-30 01:07 Gnomi Note Added: 0001861
2010-05-03 14:43 zesstra Note Added: 0001865
2010-06-03 15:01 zesstra Note Added: 0001867
2010-06-03 15:01 zesstra Status new => closed
2010-06-03 15:01 zesstra Resolution open => not fixable