On Mon, May 9, 2011 at 12:07 PM, Richard Hipp <[email protected]> wrote: > I'm still needing lots of help in getting the windows-i18n branch of Fossil > running better. > > The strategy on that branch can be summarized as follows: > > (1) All text internal to Fossil is UTF8. > > (2) Command-line arguments (the values of argv[] passed to main()), > environment variables, and other inputs are assumed to be in a > locale-dependent code page which I will call MBCS. All inputs are converted > from MBCS into UTF8 as soon as they are encountered so that internally to > Fossil everything is always UTF8. > > (3) String data (filenames) that are passed to windows system calls are > converted from UTF8 into MBCS. > > (4) Output to the console is converted from UTF8 back into MBCS. > > Several people have been testing this branch sporatically. But they report > a variety of troubles. Some people report that while input from the console > are MBCS, the output to the console should be UTF8. Or not, depending on > how the system is set up. If you have insights on how to better handle > windows i18n issues, please provide them. > > One interesting way to test the latest Fossil is to use the "test-echo" > command. "fossil test-echo ...." simply prints its arguments, like the > "echo" command of unix shells. By invoking "fossil test-echo ..." with > filename arguments that contain non-ASCII characters, you will be testing > the mechanisms outlined above. Please do this if you are able.
[snip] For this "test-echo" command. I test it and I don't get proper result with it. I look at the code a little bit and it seems that the text get converted from UTF-8 to MBCS on the output (it use the fossil_printf() function). But the input arguments are not converted. So what the output convert is already MBCS. -- Martin _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

