Re: [O] Babel Export - Getting asked for coding system

2016-09-22 Thread David A. Gershman
Thank you for the explanation. It turns out I did find a work-around which is exactly what you mentioned. The only difference is instead of specifying the file name twice, I was able to get it only once and use the 'file' option to :results: #+BEGIN_SRC perl :results output file :exports

Re: [O] Babel Export - Getting asked for coding system

2016-09-22 Thread Aaron Ecay
Hi David, The way you have this code set up, perl will print a string to its stdout. Emacs will read that string into a buffer, then write it to a file. It would be simpler to write the file directly from perl. Note that this will require specifying the file name twice (in the :file header and

[O] Babel Export - Getting asked for coding system

2016-09-21 Thread David A. Gershman
I have a block of Perl using the GD library to generate a PNG: #+BEGIN_SRC perl : results output :file output.png :exports results # code to generate png print $image -> png(); #+END_SRC When I export, I get a buffer with the raw PNG data and the question (in the mini-buffer): Select