[ 
https://issues.apache.org/jira/browse/GUACAMOLE-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Jumper closed GUACAMOLE-2176.
----------------------------------
    Resolution: Duplicate

Closing as duplicate of GUACAMOLE-198.

> Polish characters in print job titles are incorrectly encoded in filenames 
> generated by guacd's virtual printer
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: GUACAMOLE-2176
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-2176
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-docker, guacamole-server
>    Affects Versions: 1.6.0
>         Environment: Apache Guacamole 1.6.0
> guacd running in Docker container
>            Reporter: pilchu
>            Priority: Minor
>         Attachments: Księgowość.txt
>
>
> *Summary:*
> Polish characters in print job titles are incorrectly encoded in filenames 
> generated by guacd's virtual printer (Guacamole 1.6.0)
> *Description:*
> When using Apache Guacamole 1.6.0 with the built-in virtual printer 
> (redirected printing via guacd), Polish characters in the print job titles 
> are not correctly handled. Instead of proper Polish letters, filenames are 
> encoded with unexpected sequences (e.g., {{Zawiadomienie o op_263atach.pdf}} 
> instead of {{{}Zawiadomienie o opłatach.pdf{}}}).
> This issue occurs only in the filename/title of the generated PDF, while the 
> document content itself correctly displays Polish characters. Ghostscript is 
> installed and properly invoked in the container, and the problem is likely 
> caused by incorrect character encoding or mapping in guacd when converting 
> the print job title to a filename.  Attached is a sample file for printing.
> *Steps to reproduce:*
>  # Use Apache Guacamole 1.6.0 with the virtual printer feature enabled.
>  # Print a document with Polish characters in the document title (e.g., 
> containing ą, ę, ł, ć, etc.).
>  # Observe the generated PDF filename in the browser or storage location.
> *Guac logs:*
> guacd[15]: INFO:        Print job created
> guacd[15]: INFO:        Created PDF filter process PID=54
> guacd[15]: DEBUG:       Reading output from filter process...
> guacd[54]: INFO:        Running gs
> guacd[15]: DEBUG:       Beginning print stream: (Ksi\352gowo\234\346.txt \227 
> Notatnik).pdf
> guacd[15]: DEBUG:       Sending 484 byte(s) of filtered output.
> guacd[15]: DEBUG:       Sending 65 byte(s) of filtered output.
> guacd[15]: DEBUG:       Sending 2595 byte(s) of filtered output.
> guacd[15]: DEBUG:       End of print stream.
> guacd[15]: DEBUG:       Print job completed.
> guacd[15]: INFO:        Print job closed
> *Expected behavior:*
> Polish characters should be preserved and correctly displayed in the PDF 
> filename.
> *Actual behavior:*
> Polish characters in the filename are replaced with sequences like 
> {{{}_263{}}}, resulting in incorrect filenames.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to