Subject: Re: bug#73161: 29.4; Exporting Org Agenda to PDF with Cyrillic Characters

From: Eli Zaretskii <[email-masked]>
Date: Tue, 10 Sep 2024 16:53:45 +0300

> Cc: [email-masked]
> From: Ihor Radchenko <[email-masked]>
> Date: Tue, 10 Sep 2024 06:19:41 +0000
> 
> Serghei Iakovlev via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <[email-masked]> writes:
> 
> > --8<---------------cut here---------------start------------->8---
> > (require 'ps-print)
> > (ps-print-buffer-with-faces
> >   (concat (file-name-sans-extension file) ".ps"))
> > (call-process "ps2pdf" nil nil nil
> >   (expand-file-name
> >     (concat (file-name-sans-extension file) ".ps"))
> >   (expand-file-name file))
> > (delete-file (concat (file-name-sans-extension file) ".ps"))
> > (message "PDF written to %s" file)
> > --8<---------------cut here---------------end--------------->8---
> 
> (A comment to Eli and other Emacs maintainers)
> 
> I believe that what we observe here is a problem in `ps-print-buffer',
> not in Org mode. In other words, it looks like Emacs bug, not Org mode
> bug.

It isn't an Org bug, but IMO Org should prominently document that the
above is only going to work for ASCII and maybe also Latin-1 text; any
other scripts, if they at all work, need ps-mule setup and BDF fonts.