\openout not working with .rb extension

Help
2012-02-27
2012-10-17
  • Bernhard Boser

    Bernhard Boser - 2012-02-27

    After upgrading from MikTex 2.8 to 2.9 (not sure if this is the reason), the
    following code is no longer working:

    \newwrite\ruby@file
    \immediate\openout\ruby@file=\jobname.rb

    Pdftex ALL.tex gives an error:

    I can't write on file `ALL.rb'.

    Any other extension I tried (e.g. .rx, .ruby, .c, .py, ...) works without
    problem. The file ALL.rb does not exist, and the problem occurs even in a new
    folder with only the ALL.tex file present.

    Many thanks,
    Bernhard

     
  • U_Fischer

    U_Fischer - 2012-02-27

    I don't have any problem with this

    \catcode`\@=11
     \newwrite\ruby@file
     \immediate\openout\ruby@file=\jobname.rb
     \immediate\write\ruby@file{abc}
     \immediate\closeout\ruby@file
     abc
    \bye
    

    neither with the equivalent pdflatex document. \jobname.rb is generated
    without problems.

    I'm using miktex 2.9 on win xp. I do have ruby installed some where but I
    never actively used it.

    Ulrike Fischer

     

Log in to post a comment.