jfisteus / html2xhtml

Command-line HTML to XHTML converter
http://www.it.uc3m.es/jaf/html2xhtml/
Other
43 stars 24 forks source link

Compiled in AIX - Issue found #11

Open Danny-E opened 9 years ago

Danny-E commented 9 years ago

Hello, I was able to compile html2xhtml in AIX 7.1. Took a few tries. I can comment on how I did it if needed. Issue I found: I kept getting this error during execution: iconv_open: invalid argument aix After a ton of Google searches, I finally started looking at the code. It turns out the case of the values of the charset_aliases struc was the issue. They do not match the case returned by "iconv -l" and therefore, I believe, causes the error. To correct, I changed iso-5589-1 to ISO5589-1 and the conversion worked!! So please update the values of charset_aliases. Thank you,

jfisteus commented 9 years ago

Thanks for notifying the issue. From a quick google search, it seems that character set names in iconv for AIX are case-sensitive, but they aren't in other platforms such as Linux and Windows, where I regularly test the program. I'll need to fix all the charset names and aliases so that they are always passed to iconv in uppercase.

Regarding how to compile the program in AIX, I understand from your comment that it isn't trivial. If you provide me with instructions I can add them to the README file. Thanks!