>>>> "JV" == Jan Vroonhof
<jan.vroonhof(a)ntlworld.com> writes:
JV> npak(a)ispras.ru (Nick V. Pakoulin) writes:
JV> 2. Can you print a text in your native language/charset?
> No. When I try to print the following phrase in russian:
>
> ðÒÏ×ÅÒËÁ ÒÕÓÓËÏÇÏ ÔÅËÓÔÁ (Test of russian text)
>
> I get the error in function `ps-output-string-prim': (args-out-of-range
> ["\\000" "\\001" "\\002" "\\003"
"\\004" "\\005" "\\006" "\\364" "\\365"
> "\\366" "\\367" "\\370" "\\371"
"\\372" "\\373" "\\374" "\\375" "\\376"
> "\\377"] ?ð)
>
> I played with `ps-multibyte-buffer', setting it to all allowed values (see
> ps-mule.el), but nothing changed.
JV> Could you do a debug-on-entry on ps-mule-string-encoding and single-step?
JV> In particular is the line (encode-coding-string str encoding), hit? If no
JV> what is the value of 'encoding' if yet, what is the value of
'encoding'
JV> and what does encode-coding-string return?
After some hacking I made it print russian text.
The patch below contains changes to ps-mule that I made to enable printing in
russian. But it is not enough -- ps-mule uses undefined function
`chars-in-region' and i supposed that it should be something like
(defun chars-in-region (from to) (- to from))
ps-mule uses cyrillic-iso-8bit encoding for russian. XEmacs seems not to have
such coding system so I defaliased it to iso-8859-5:
(define-coding-system-alias 'cyrillic-iso-8bit 'iso-8859-5)
This is rather raw solution but it works for me now.
JV> Jan
Nick.