View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000748 | LDMud | Efuns | public | 2010-04-27 05:35 | 2010-06-03 15:01 |
| Reporter | _xtian_ | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | not fixable | ||
| Summary | 0000748: feature: list of possible charsets for convert_charset() | ||||
| Description | It 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. | ||||
| Tags | No tags attached. | ||||
| External Data (URL) | |||||
|
|
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? |
|
|
Hm, yes. And since the charset types are standard anyway, my whole request might be irrelevant. |
|
|
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. |
|
|
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. |
|
|
I added a note about the host system dependency to the manpages and close this now as suggested earlier. |
| 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 |