Javier Enciso wrote:
> Hi David,
>
> I did some changes in octave-forge/admin/octlang in order to preserve 
> UTF-8 as the charset of the translations. Now I can see the translations 
> (special characters) correctly on Windows and Linux.
>
> One issue still open. After I install the Spanish package I use the command
>
>  > dos("chcp 65001")
>
> in the post_install script, nonetheless, after I rest Octave the code 
> page is reseted to 850, hence special characters are not shown properly 
> unless you type again dos("chcp 65001"). Then my question is, is it 
> possible to somehow save the command "chcp 65001" in a file such that 
> the final user doesn't need to worry about applying this command 
> whenever he/she restarts Octave in Windows?
>   
The place to do this is a PKG_ADD file in the spanish language itself. 
It can either be at the root of the package, in the inst/ directory or 
as a comment in one of the src files or m-files. The command in this 
file are run each time the package is loaded.

D.


-- 
David Bateman                                dbate...@dbateman.org
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)


------------------------------------------------------------------------------
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to