Re: mingw32 build (was Re: slrn 0.9.9 release plans)
"John E. Davis" <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Marcin Wiśniewski <[email protected]> wrote: > Traceback: sprintf > .\macros\xface.sl:14:update_xface:Type Mismatch > Local variables for update_xface: > String_Type xface = "" > Null_Type home = NULL > Undefined_Type fxface = Undefined_Type > Undefined_Type h = Undefined_Type > .\macros\xface.sl:23:show_xface:Type Mismatch > .\macros\hooks.sl:33:SYS_read_article_hook:Type Mismatch > > where xface.sl: > 14: variable fxface = sprintf("%s/xface.$$$", home); The problem is that `home' is NULL instead of a string. How are you setting `home'? Via getenv("HOME")? If so, does "HOME" exist in the environment? >>> 2) Charsets - same errors as in previous version. >> >> Not surprising considering that the native windows version does not >> have support for character set translation enabled. For this, a >> windows equivalent of iconv will be required. As I stated before, I >> know next to nothing about windows, and even less about character set >> handling under windows. > > Iconv and gettext binaries are available on mingw page and I hope they will > be used when you got time (and inclination) to work on compiling slrn by msys. I will look into it. In the mean time, perhaps you can explore this. You will have to modify the makefile to link to the iconv library, and put #define HAVE_ICONV 1 in the src/slrnconf.h file then recompile. >> You may need to install UTF-8 specific fonts. > > It will be difficult - in cmd.exe you can choose between only one raster > font and one unicode - Lucida Console. Anyway, I tested it with windows > binary of 'less' and it works, showing cyrillic characters. > >> In addition, you may >> have to set the LANG environment variable to something like >> "pl_PL.UTF-8" to force slang into UTF-8 mode. > > Sorry, no change. From within slrn, press Ctrl-X ESC. You should see a "S-Lang>" prompt. At the prompt, enter: vmessage("%d", _slang_utf8_ok); If 1 is displayed, then slang is in UTF-8 mode. Thanks, --John ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/