Opened 10 years ago

Closed 10 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)

texlive-context.patch (1.8 KB) - added by mojca (Mojca Miklavec) 10 years ago.
a patch to make ConTeXt work with ruby 2.0

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by mojca (Mojca Miklavec)

Attachment: texlive-context.patch added

a patch to make ConTeXt work with ruby 2.0

comment:1 Changed 10 years ago by drkp (Dan Ports)

Status: newassigned

comment:2 Changed 10 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Thanks, committed in r115694.

Note: See TracTickets for help on using tickets.