<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 400: Problem with file name when saving in some formats</title><link>https://sourceforge.net/p/gscan2pdf/bugs/400/</link><description>Recent changes to 400: Problem with file name when saving in some formats</description><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/400/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 09 Dec 2023 19:31:02 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/400/feed.rss" rel="self" type="application/rss+xml"/><item><title>#400 Problem with file name when saving in some formats</title><link>https://sourceforge.net/p/gscan2pdf/bugs/400/?limit=25#5beb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the patch. I'm in the middle of a complete rewrite in Python, where the utf8 handling is transparent and therefore should not suffer from this problem.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeffrey Ratcliffe</dc:creator><pubDate>Sat, 09 Dec 2023 19:31:02 -0000</pubDate><guid>https://sourceforge.netf510a5d3cac73ab5a78a445ff55182798b78d1a2</guid></item><item><title>#400 Problem with file name when saving in some formats</title><link>https://sourceforge.net/p/gscan2pdf/bugs/400/?limit=25#e922</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for reporting this and for the hint regarding &lt;code&gt;save_image&lt;/code&gt; and &lt;code&gt;_utf8_on&lt;/code&gt;/&lt;code&gt;_utf8_off&lt;/code&gt;. I created a patch which is quite simple.&lt;/p&gt;
&lt;p&gt;In fact this issue has already been fixed for all other file types other than images in commit &lt;a class="" href="https://sourceforge.net/p/gscan2pdf/code/ci/f8b1cc5b1d100134de5b44cd029ebda44e8150c3/"&gt;f8b1cc&lt;/a&gt; (”&lt;em&gt;Fixed saving PDFs with non-ASCII characters in the path and no extension&lt;/em&gt;“), which closed bug &lt;a class="" href="https://sourceforge.net/p/gscan2pdf/bugs/312/"&gt;#312&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Maybe you want to refactor the code by moving the &lt;code&gt;_utf8_*&lt;/code&gt; function calls and the comment (&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;# a filename returned by Gtk3::FileChooserDialog containing utf8 is&lt;/span&gt;
&lt;span class="c1"&gt;# not marked as utf8. This is then mangled by the append operation&lt;/span&gt;
&lt;span class="c1"&gt;# below, but not for the operations than come afterwards, so just&lt;/span&gt;
&lt;span class="c1"&gt;# turning on utf8 for the append.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;)  to a separate function, e.g. &lt;code&gt;utf8_append()&lt;/code&gt;.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Kimmerle</dc:creator><pubDate>Sun, 19 Nov 2023 18:02:46 -0000</pubDate><guid>https://sourceforge.net2b236bfd72e861d8ee323cb60177f40b37c61902</guid></item><item><title>#400 Problem with file name when saving in some formats</title><link>https://sourceforge.net/p/gscan2pdf/bugs/400/?limit=25#4a45</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the answer. When you specify a file name in Russian letters without an extension, saving the file name with a picture (jpg, etc.) also spoils. I tried to understand the problem in the code and, in my opinion, the problem in the function save_image. There is no call to utf8on ($ filename); just as it did in savepdf . &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aleksandr Nadvorny</dc:creator><pubDate>Fri, 25 Feb 2022 11:30:37 -0000</pubDate><guid>https://sourceforge.netdac505b24d293094f24b838351c070cd433e8d35</guid></item><item><title>#400 Problem with file name when saving in some formats</title><link>https://sourceforge.net/p/gscan2pdf/bugs/400/?limit=25#ce6c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the report. I only see the problem in the output in the log file. The filename itself is properly encoded. Is this what you are seeing, too?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeffrey Ratcliffe</dc:creator><pubDate>Tue, 22 Feb 2022 17:13:28 -0000</pubDate><guid>https://sourceforge.net8769d48fa07c8b05d2c03a956f1a40af72c6ec91</guid></item><item><title>Problem with file name when saving in some formats</title><link>https://sourceforge.net/p/gscan2pdf/bugs/400/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When saving to GIF, PNG, PNM and JPG, the filename is corrupted in the utf-8 console. Ubuntu 21.10. gscan2pdf version 2.12.5.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aleksandr Nadvorny</dc:creator><pubDate>Sun, 20 Feb 2022 13:12:30 -0000</pubDate><guid>https://sourceforge.netb91dc4cd3fcf3a9448ea5abafa574b54d392cd46</guid></item></channel></rss>