Bug 11167 - simple-scan don't accept accented characters
Summary: simple-scan don't accept accented characters
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
Depends on:
Reported: 2013-09-05 10:07 CEST by Denis Prost
Modified: 2020-07-10 20:46 CEST (History)
9 users (show)

See Also:
Source RPM: simple-scan-3.6.0-3.mga3.i586.rpm
Status comment:

simple-scan -d output (27.31 KB, text/plain)
2013-09-06 20:42 CEST, Denis Prost
simple-scan error dialog box (68.08 KB, image/png)
2013-12-24 10:36 CET, Denis Prost

Description Denis Prost 2013-09-05 10:07:08 CEST
Description of problem:

after scanning a document, if I try to save it with accented characters in its filename, or if I try to create a folder that contains accented characters in its name, I get an error box saying "invalid filename".

Version-Release number of selected component (if applicable):

3.6.0-3.mga3 (but also happens with simple-scan 3.9.90-1.mga4 in cauldron)

How reproducible: everytime

Steps to Reproduce:
1. scan a document
2. try to save it as "document numérisé.jpg"
3. You'll get an error box "invalid filename"


Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-09-06 18:47:15 CEST
what are the output if you run simple-scan in a teminal with "-d" as parameter ?
Comment 2 Denis Prost 2013-09-06 20:42:06 CEST
Here it is, from startup to quit, and between both, one scan with my webcam and attempt to save it as "document nuùmérisé.jpg"

CC: (none) => denis.prost

Comment 3 Denis Prost 2013-09-06 20:42:46 CEST
Created attachment 4336 [details]
simple-scan -d output
Manuel Hiebel 2013-09-09 19:28:20 CEST

Attachment 4336 mime type: application/octet-stream => text/plain

Comment 4 Manuel Hiebel 2013-09-09 19:29:20 CEST
no more ideas

Assignee: bugsquad => mageia
Keywords: (none) => Triaged

Comment 5 Damien Lallement 2013-09-19 17:34:27 CEST
Can you try with 3.9.91 from cauldron please?
Comment 6 Denis Prost 2013-09-19 18:24:24 CEST
sorry, I cannot succeed testing it :
when I tried to install simple-scan from cauldron, it claimed for a libcolord2 dependency, so I installed it also from cauldron and then could install simple-scan.
But now, when I try to run simple-scan, I get an error :
simple-scan: /lib/libudev.so.1: version `LIBUDEV_196' not found (required by /lib/libcolordprivate.so.2)
and trying to install libudev1 from cauldron fails :
[root@localhost Téléchargements]# rpm -ivh libudev1-206-8.mga4.i586.rpm 
Preparing...                          ################################# [100%]
	file /usr/lib/libudev.so.1 from install of libudev1-206-8.mga4.i586 conflicts with file from package libudev1-195-22.mga3.i586
Comment 7 Damien Lallement 2013-09-20 01:45:55 CEST
I can reproduce for now with 3.6.0 and 3.9.91.
Let me investigate more... :-)
Comment 8 Damien Lallement 2013-10-01 15:00:32 CEST
I meant, I can't reproduce... Oops.


Comment 9 Denis Prost 2013-10-01 15:11:17 CEST
That's strange.
Is there anything I could do that could help debug it ?
Comment 10 Damien Lallement 2013-12-24 01:53:54 CET
I still can't reproduce. Can you give me more information on your Mageia installation if bug still available please?
Comment 11 Denis Prost 2013-12-24 08:34:15 CET
Sure, what kind of information do you need ?
Comment 12 Damien Lallement 2013-12-24 08:40:20 CET
- If it's still available on your computer.
- If your are using KDE or GNOME.
- If your système is in French or English or other.
- If you have only one locale installed on your computer or more.
- If you can make a screenshot of the popup about bad filename.

Comment 13 Denis Prost 2013-12-24 10:36:04 CET
Created attachment 4664 [details]
simple-scan error dialog box

simple-scan error dialog box when trying to save "document numérisé".jpg
Comment 14 Denis Prost 2013-12-24 10:37:50 CET
thank you Damien for taking care of that bug.

1) Yes, it is still available
2) I'm using XFCE with KDM login manager
3) My system is in french
4) I don't know how to check installed locales, I tried this :
[denis@localhost ~]$ localectl
   System Locale: LANG=fr_FR.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a
And localedrake shows that the chosen language is french.
I guess there is a finer way to check locales, but I don't know how

5) attached above is the screenshot


Comment 15 Marja Van Waes 2015-03-31 16:06:31 CEST
Mageia 3 changed to end-of-life (EOL) status 4 months ago.

Mageia 3 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Mageia
please feel free to click on "Version" change it against that version of Mageia
and reopen this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

The Mageia Bugsquad

Resolution: (none) => OLD

Comment 16 Denis Prost 2015-03-31 21:08:33 CEST
The Problem still exists with mageia 5 beta 3

Resolution: OLD => (none)
Version: 3 => Cauldron

Sylvain ZUCCA 2015-08-09 14:36:57 CEST

CC: (none) => sylvainsjc

Comment 17 papoteur 2015-08-09 19:53:30 CEST
The message comes from GtkFileChooser, not from SimpleScan.
Thus I suppose that other application could be affected.

CC: (none) => yves.brungard_mageia

Comment 18 Marja Van Waes 2015-10-12 17:07:59 CEST
(In reply to papoteur from comment #17)
> Hello,
> The message comes from GtkFileChooser, not from SimpleScan.
> Thus I suppose that other application could be affected.

reassigning to bugsquad, because simple-scan no longer has a maintainer.

also removing "Triaged" because of the above remark.

Before we try to find out what is going on: did anybody recently hit this bug in Mageia 5 and/or cauldron?

CC: (none) => marja11
Assignee: mageia => bugsquad
Keywords: Triaged => NEEDINFO

Comment 19 papoteur 2016-02-17 09:43:44 CET
Yes, I just hit this bug, although I used to use it without problems by now.
Comment 20 papoteur 2016-02-17 14:00:27 CET
I have reported the problem upstream.
papoteur 2016-02-17 19:54:52 CET

Assignee: bugsquad => geiger.david68210
Hardware: i586 => All

Comment 21 papoteur 2016-05-27 10:58:59 CEST
Indication from upstream report:
The warning message comes from GTK+, not simple-scan. But I have other GTK application in which I can use "é" in file names.
Version : simple-scan-3.14.0-3.mga5
On Mageia 5.

The log file contains only the final file name.
The warning box has no title and says exactly : "Nom de fichier non valide" or when launched with LANGUAGE=C prefix: "Invalid file name"

The message comes from gtk/gtkfilechooserdefault.c line 1037
papoteur 2016-05-27 11:10:49 CEST

CC: (none) => hugo.pereira

Comment 22 papoteur 2016-05-27 11:42:02 CEST
I have found a workaround.
I had a file ~/.config/gtkfilechooser.ini with this content:
[Filechooser Settings]

I don't know when or from where it came, and which setting induce the bad behaviour.
But by deleting it, the filechooser dialog box works fine now. \o/
Dimitrios Glentadakis 2016-06-05 08:38:08 CEST

CC: (none) => dglent

Comment 23 David GEIGER 2019-12-30 07:04:05 CET
Does this issue still happens on current Mageia 7?
Comment 24 Denis Prost 2019-12-30 07:30:36 CET
I'm sorry, I can't tell, I don't have a Mageia 7 install.


Comment 25 Dimitrios Glentadakis 2019-12-30 07:57:44 CET
Present in Mageia 7, i have modified manually the translation of 'Scanned Documment.pdf' output to workaround this issue [Greek local]
Comment 26 David GEIGER 2019-12-30 11:59:33 CET
a patch was added by dtux in Cauldron who should fix this issue, so I added the same for mga7.

Please test the upcoming simple-scan- in Core/Updates_testing repo!
Comment 27 David GEIGER 2019-12-30 13:32:33 CET
Here on my mga7 for x86_64 I can confirm that now accented characters works now!

It properly display "Nom: Document numérisé.pdf"
Comment 28 papoteur 2020-01-02 15:34:27 CET
Installed simple-scan-
Launched simple-scan
Got a scan.
Clicked to save.
Suggested name is "Document numérisé.pdf".
Saved in ~/Documents
No error, however nothing is stored :/
Comment 29 papoteur 2020-01-02 15:38:03 CET
And if I select jpeg format, then I get "Invalid file name" for "Document numérisé.jpg"
Comment 30 papoteur 2020-01-02 21:26:36 CET
Added a bug report by Gnome https://gitlab.gnome.org/GNOME/simple-scan/issues/147
Comment 31 Frédéric "LpSolit" Buclin 2020-01-12 15:02:48 CET
Could the GTK2 vs GTK3 problem with the file chooser be due to a wrong dependency when building the RPM? This bug is really painful.

CC: (none) => LpSolit
Keywords: NEEDINFO => (none)

Comment 32 papoteur 2020-04-18 12:35:38 CEST
Tried again today with simple-scan-
No more problem, even with saving in JPEG format.
Installing simple-scan- from testing.
No problem with accented characters, but JPEG file is not saved.
I think we can close this bug without the release in testing.
Comment 33 Lewis Smith 2020-04-21 21:21:04 CEST
Came across this bug by chance. Tried it.

simple-scan- (current latest public)
This really hates (refuses) accented characters in output filenames.

(In reply to David GEIGER from comment #26)
> Please test the upcoming simple-scan- in
> Core/Updates_testing repo!
Would love to, but cannot see it there.
Could I try with a urpmi --media parameter?

CC: (none) => lewyssmith

Comment 34 Lewis Smith 2020-05-13 12:20:18 CEST
Just found and tried this pending update:

(In reply to papoteur from comment #32)
> Installing simple-scan- from testing.
> No problem with accented characters, but JPEG file is not saved.
> I think we can close this bug without the release in testing.
NO! On my system, Welsh/English with AZERTY kb, I tried saving a scan as:
- jpg
- png
In all cases, certainly, all accented characters in the output filename were accepted; but in *no* case was the file ever actually saved. So the update resolves the bug problem, but introduces a worse one.
I found the same problem in a different (alas, forgotten) application; so agree with the surmise about the GTK file picker being the culprit.

And trying for comparison Image-Scan for Linux, that simply ignores any typed accented character in the output filename. Neat!
Comment 35 Aurelien Oudelet 2020-07-07 00:22:37 CEST
I think there is something wrong there in my Mageia 8a1 install.
Bug seems to be in the filechooser dialog.

In facts, in Linux Mint Cinnamon 20 and KDE Neon (Plasma 5.19.2 as MGA8a1), simple-scan can save accented files.
In Ubuntu (18.04 and 20.04), you can also save files with accented characters.
Why not here?

Name file with non accented characters and rename in File-manager later.
Very time consuming.

CC: (none) => ouaurelien

Comment 36 Martin Whitaker 2020-07-09 10:55:15 CEST
See bug 26903 for an explanation and fix for the file saving bug introduced in simple-scan-

CC: (none) => mageia
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=26903

Comment 37 Aurelien Oudelet 2020-07-09 11:06:48 CEST
Sorry, in mga7 with updates installed and simple-scan-
I have NO bug.

In mga8 Cauldron today, I have bug with simple-scan-3.37.2-1.mga8.

Seeing simple-scan --debug command in console I see this in beginning of output:

In mga7:
[aurelien@mageia7 ~]$ simple-scan --debug
[+0,00s] DEBUG: simple-scan.vala:638: Starting Simple Scan, PID=15599
[+0,03s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0,05s] DEBUG: app-window.vala:1651: Loading state from /home/aurelien/.cache/simple-scan/state
[+0,05s] DEBUG: app-window.vala:1630: Restoring window to 683x400 pixels

In mga8:
[aurelien@mageia8 ~]$ simple-scan --debug
[+0,00s] DEBUG: simple-scan.vala:2007: Starting simple-scan 3.37.2, PID=48228
[+0,00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0,01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0,26s] DEBUG: _g_io_module_get_default: Found default implementation keyfile (GKeyfileSettingsBackend) for ‘gsettings-backend’
[+0,28s] DEBUG: app-window.vala:1987: Loading state from /home/aurelien/.cache/simple-scan/state
[+0,28s] DEBUG: app-window.vala:1966: Restoring window to 651x566 pixels

It seems simple-scan in mg8 loads GLocalVfs that in mga7 it does not load.
Bug here?
Comment 38 Aurelien Oudelet 2020-07-09 11:11:10 CEST
Also, I managed to see my current LinuxMint 20 Cinnamon installation.
$ simple-scan --debug is like mga7:

aurelien@linuxmint:~$ simple-scan --debug
[+0,00s] DEBUG: simple-scan.vala:638: Starting simple-scan 3.36.0, PID=2354
[+0,00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0,01s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0,03s] DEBUG: app-window.vala:1908: Loading state from /home/aurelien/.cache/simple-scan/state
[+0,03s] DEBUG: app-window.vala:1887: Restoring window to 642x400 pixels

It not load "g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’"

Bug here?
Comment 39 Aurelien Oudelet 2020-07-09 13:41:25 CEST
Hi there,
I managed to install a fresh install of Mageia 8 Cauldron via Classic ISO and in GNOME Desktop. Updated it. Install task-scanning via "Configure scanner" in MCC.

When I run:

$ simple-scan --debug

I see:
[aurelien@mageia8-gnome ~]$ simple-scan --debug
[+0,00s] DEBUG: simple-scan.vala:2007: Starting simple-scan 3.37.2, PID=18245
[+0,00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0,01s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0,03s] DEBUG: app-window.vala:1987: Loading state from /home/aurelien/.cache/simple-scan/state
[+0,03s] DEBUG: app-window.vala:1966: Restoring window to 688x400 pixels

It not use any gio-vfs thing as in mga8 Plasma 5.
And I CAN scan documents and save it as PDF with accented character.
I don't have skills to know why in Plasma 5 simple-scan loads one more g_io thing which seems to conflicts here with accented characters.

I wonder if I install task-plasma5 on this installation and run it after, bug will be still present?
Comment 40 Aurelien Oudelet 2020-07-10 13:23:57 CEST
Hi there!
Today there is an update for simple-scan in Cauldron:

So, after testing both in Gnome and in KDE Plasma 5,
accented characters are no longer forbidden in file name.

Seems bug resolved here.
Comment 41 Aurelien Oudelet 2020-07-10 13:30:53 CEST
Also in mga7 , with today current simple-scan-
Accented characters are welcomed, both in Plasma 5 desktop and Gnome.

Seems fixed.
Lewis Smith 2020-07-10 20:46:08 CEST

CC: lewyssmith => (none)

Note You need to log in before you can comment on or make changes to this bug.