Cyrillic symbols not working as filenames

Bug #2006974 reported by Vladislav Badabas
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Undecided
Unassigned

Bug Description

Cyrillic simbols nor working. Pinta dont open file winh cyrillic simbols (ДЫЦИФ etc).

Tags: cyrillic error
Revision history for this message
Vladislav Badabas (vladbadabas) wrote :
Revision history for this message
grofaty (grofaty) wrote :

I can not reproduce a problem.

I created file with name ДЫЦИФ.png and I can successfully open it on Pinta/2.1 on Ubuntu 22.10. Maybe this is Windows specific?

Can you do the following:
1. Create an image with file name only one Cyrillic letter and try to open file in Pinta. If error is returned then post the exact file name here.
2. In error message, can you please expand the error message (click on little black triangle) to display whole message. Can you please also translate it to English, so we can understand it or at least copy paste it to Google Translate and post the output here.

Revision history for this message
Vladislav Badabas (vladbadabas) wrote : RE: [Bug 2006974] Re: Cyrillic simbols nor working

Done. File:
"D:\Downloads\ShareX\й.png"

GLib.GException: Error when getting information for file “D:\Downloads\ShareX\�.png”: Invalid argument
   at GLib.FileAdapter.QueryInfo(String attributes, FileQueryInfoFlags flags, Cancellable cancellable)
   at Pinta.Core.GtkExtensions.GetDisplayName(IFile file) in D:\a\Pinta\Pinta\Pinta.Core\Extensions\GtkExtensions.cs:line 279
   at Pinta.Core.WorkspaceManager.OpenFile(IFile file, Window parent) in D:\a\Pinta\Pinta\Pinta.Core\Managers\WorkspaceManager.cs:line 218

(Wihtout сyrillic simbols all work)

[cid:0c947e55-de06-4bf6-bd12-2bd8464e3425]
________________________________
От: <email address hidden> <email address hidden> от имени grofaty <email address hidden>
Отправлено: 11 февраля 2023 г. 15:28
Кому: <email address hidden> <email address hidden>
Тема: [Bug 2006974] Re: Cyrillic simbols nor working

I can not reproduce a problem.

I created file with name ДЫЦИФ.png and I can successfully open it on
Pinta/2.1 on Ubuntu 22.10. Maybe this is Windows specific?

Can you do the following:
1. Create an image with file name only one Cyrillic letter and try to open file in Pinta. If error is returned then post the exact file name here.
2. In error message, can you please expand the error message (click on little black triangle) to display whole message. Can you please also translate it to English, so we can understand it or at least copy paste it to Google Translate and post the output here.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/2006974

Title:
  Cyrillic simbols nor working

Status in Pinta:
  New

Bug description:
  Cyrillic simbols nor working. Pinta dont open file winh cyrillic
  simbols (ДЫЦИФ etc).

To manage notifications about this bug go to:
https://bugs.launchpad.net/pinta/+bug/2006974/+subscriptions

Revision history for this message
Vladislav Badabas (vladbadabas) wrote :

UPDATE:
Error ONLY with "Open with" in contextn menu.

[cid:32c27a3c-5f9d-4559-8cb4-22bf58efcc5c]
________________________________
От: Владислав М <email address hidden>
Отправлено: 11 февраля 2023 г. 18:52
Кому: Bug 2006974 <email address hidden>
Тема: RE: [Bug 2006974] Re: Cyrillic simbols nor working

Done. File:
"D:\Downloads\ShareX\й.png"

GLib.GException: Error when getting information for file “D:\Downloads\ShareX\�.png”: Invalid argument
   at GLib.FileAdapter.QueryInfo(String attributes, FileQueryInfoFlags flags, Cancellable cancellable)
   at Pinta.Core.GtkExtensions.GetDisplayName(IFile file) in D:\a\Pinta\Pinta\Pinta.Core\Extensions\GtkExtensions.cs:line 279
   at Pinta.Core.WorkspaceManager.OpenFile(IFile file, Window parent) in D:\a\Pinta\Pinta\Pinta.Core\Managers\WorkspaceManager.cs:line 218

(Wihtout сyrillic simbols all work)

[cid:0c947e55-de06-4bf6-bd12-2bd8464e3425]
________________________________
От: <email address hidden> <email address hidden> от имени grofaty <email address hidden>
Отправлено: 11 февраля 2023 г. 15:28
Кому: <email address hidden> <email address hidden>
Тема: [Bug 2006974] Re: Cyrillic simbols nor working

I can not reproduce a problem.

I created file with name ДЫЦИФ.png and I can successfully open it on
Pinta/2.1 on Ubuntu 22.10. Maybe this is Windows specific?

Can you do the following:
1. Create an image with file name only one Cyrillic letter and try to open file in Pinta. If error is returned then post the exact file name here.
2. In error message, can you please expand the error message (click on little black triangle) to display whole message. Can you please also translate it to English, so we can understand it or at least copy paste it to Google Translate and post the output here.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/2006974

Title:
  Cyrillic simbols nor working

Status in Pinta:
  New

Bug description:
  Cyrillic simbols nor working. Pinta dont open file winh cyrillic
  simbols (ДЫЦИФ etc).

To manage notifications about this bug go to:
https://bugs.launchpad.net/pinta/+bug/2006974/+subscriptions

Revision history for this message
Cameron White (cameronwhite91) wrote : Re: Cyrillic simbols nor working

Thanks! Your last comment mentions it only happens with the "Open With" menu - so does opening the file through File -> Open after Pinta is already open work?

Also, is this with Pinta 2.0 or 2.1?

Revision history for this message
Vladislav Badabas (vladbadabas) wrote : RE: [Bug 2006974] Re: Cyrillic simbols nor working

Pinta 2.1 - actual +
Inside app menu all work +

[cid:00e24d21-7fca-48da-8897-26d1cf2ab36b]
________________________________
От: <email address hidden> <email address hidden> от имени Cameron White <email address hidden>
Отправлено: 11 февраля 2023 г. 20:23
Кому: <email address hidden> <email address hidden>
Тема: [Bug 2006974] Re: Cyrillic simbols nor working

Thanks! Your last comment mentions it only happens with the "Open With"
menu - so does opening the file through File -> Open after Pinta is
already open work?

Also, is this with Pinta 2.0 or 2.1?

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/2006974

Title:
  Cyrillic simbols nor working

Status in Pinta:
  New

Bug description:
  Cyrillic simbols nor working. Pinta dont open file winh cyrillic
  simbols (ДЫЦИФ etc).

To manage notifications about this bug go to:
https://bugs.launchpad.net/pinta/+bug/2006974/+subscriptions

Revision history for this message
grofaty (grofaty) wrote : Re: Cyrillic simbols nor working

I did few more tests. First created PNG file with file name й.png

TESTS
1. Pinta 2.1/Ubuntu 22.10 - File | Open - Works fine.
2. Pinta 2.1/Ubuntu 22.10 - From within file manager select Open With - Works fine.
3. Pinta 2.1/Windows 10 - File | Open - Works fine.
4. Pinta 2.1/Windows 10 - From within file manager select Open With - I get the same error message.

It looks like Windows specific problem. I am marking the bug as Confirmed. Thanks a lot for reporting a bug.

@Cameron, it is interesting that error message refers to D: that does not exists on my Windows computer. Maybe this was the path when some extension was compiled or something. See attachment.

Changed in pinta:
status: New → Confirmed
Revision history for this message
grofaty (grofaty) wrote :

ADDITIONAL TESTS:
5. Paint (Windows default image program) - File | Open - Works fine.
6. Paint (Windows default image program) - From within file manager select Open With - Works fine.

I see two possible causes:
a) Windows does not correctly sends the file name - which is less likely because Paint is able to open it.
b) Pinta does not uses correct encoding and so does not recognized Cyrillic character as file name. This is some how indicator because to my experience when program does not recognizes correct encoding question mark is displayed like in an example of this case. "?.png"

Revision history for this message
Cameron White (cameronwhite91) wrote :

This should be fixed by https://github.com/PintaProject/Pinta/commit/fcc11ab52e405f34dbf5c9156c594bf937386a0e

Please give this a try and let me know if there are any issues! There will be an installer available at https://github.com/PintaProject/Pinta/actions/runs/4157445002 once it's finished building (requires Github login to download)

Changed in pinta:
milestone: none → 2.1.1
status: Confirmed → Fix Committed
grofaty (grofaty)
summary: - Cyrillic simbols nor working
+ Cyrillic symbols not working as filenames
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.