On 9/18/2013 4:53 PM, Gerben Wierda wrote:
it runs ok with \xFF here in 1.9On 18 Sep 2013, at 11:18, Hans Hagen <pragma@wxs.nl> wrote:
On 9/18/2013 10:47 AM, Gerben Wierda wrote:
As my computer died I had to set up a clean one. I installed MacTeX 2013
and tried to compile a ConTeXt project, but this failed:
texexec --pdf --mode=editor --once .../products/prd_book.tex
resolvers | caches | path
'/Users/gerben/Library/texlive/2013/texmf-var'
created/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require':
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501:
invalid multibyte escape: /\xFF/ (SyntaxError)
from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require'
from
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in
`<main>'
It seems a problem in a ruby file in MacTeX 2013. Can someone help me
get this working?
Maybe something utf in the latest ruby ... can you try to replace the \xFF with \xFFFC and see what happens?
Same thing happens. Now it says \xFFFC is an invalid multibyte escape
in 2.0 i need to patch in that file:
series.each_char do |key| # was .each but there is no alias to each_char any longer
does the top of switch.rb mention:
#encoding: ASCII-8BIT
(i do have a prototype of texexec in lua but no time to finish that now but i fear at some moment i have to do it as i cannot foresee ruby 2.0 compatibility issues)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________