Opened 11 years ago
Closed 11 years ago
#42056 closed defect (fixed)
texlive-context: fails with ruby 2.0
Reported by: | mojca (Mojca Miklavec) | Owned by: | drkp (Dan Ports) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | |
Port: | texlive-context |
Description
ConTeXt fails to work with ruby 2.0.
You can try to reproduce the problem by setting
sudo port set ruby ruby20
(on 10.9 ruby 2.0 is probably default already) and then trying to compile a simple hello world document with texexec hello.tex
:
\starttext Hello world! \stoptext
Testing with MacTeX 2013 (not the one by MacPorts) throws:
/opt/local/lib/ruby2.0/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require': /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError) from /opt/local/lib/ruby2.0/2.0.0/rubygems/core_ext/kernel_require.rb:53:in `require' from /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in `<main>'
I attached the patch. While at it you probably can also remove the other patch in texlive-context
.
Attachments (1)
Change History (3)
Changed 11 years ago by mojca (Mojca Miklavec)
Attachment: | texlive-context.patch added |
---|
comment:1 Changed 11 years ago by drkp (Dan Ports)
Status: | new → assigned |
---|
comment:2 Changed 11 years ago by drkp (Dan Ports)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks, committed in r115694.
Note: See
TracTickets for help on using
tickets.
a patch to make ConTeXt work with ruby 2.0