On 20/09/10 16:56, Gubinelli Massimiliano wrote:
Hi,
could you give me some details to reproduce the problem? I
do not know what mode=prog means.
See the attached file. The first echo `date` has the back-ticks entered using the backtick key. 1. This is the wrong character, it should use the character on the second echo `date` line 2. see the "bad" line, how these wrong-backticks start pairing together. Press END on this line and see how far the text caret is from what is being typed. 3. mode=prog allows the " key to enter normal ascii-34 quote marks. Similar should happen for ` and ' 4. export the file as text. The bad characters are some unicode and the good characters did export correctly. 5. because real backticks are saved as \0 in the .tm file, if I try to "evaluate scheme _expression_" and the scheme _expression_ has a ` in it, the ` is saved as \0x00 in my .TeXmacs/system/interactive.scm and I start getting errors like this: ERROR: In procedure footer-eval: ERROR: string contains #\nul character: "(insert \"\x00\")" /home/sam/Projects/texmacs/texmacs/trunk/src/TeXmacs/progs/kernel/texmacs/tm-dialogue.scm:352:9: In procedure tm-interactive in _expression_ (tm-interactive fun fun-args): /home/sam/Projects/texmacs/texmacs/trunk/src/TeXmacs/progs/kernel/texmacs/tm-dialogue.scm:352:9: string contains #\nul character: "(insert \"\x00\")" So, when mode=prog (and the quote key) works properly, so should apostrophe and backtick. And \0 is perhaps a bad choice of encoding. Sam thanks
best
max
On 20 sept. 2010, at 17:33, "Sam Liddicott" <address@hidden> wrote:
--
<wrtOa MS fAAAAAielRYdFNvZnR3YXJlAAB42isvL9fLzMsuTk4sSNXLL0oHADbYBlgQU8pcAAAAAElFTkSuQmCC> |
<TeXmacs|1.0.7.6> <style|generic> <\body> <\with|mode|prog> #! /bin/sh echo "test" echo `date` echo \0date\0 bad ```````````````````` good \0\0\0\0\0\0\0\0\0 </with> \; </body> <\initial> <\collection> <associate|language|british> </collection> </initial>
Archive powered by MHonArc 2.6.19.