Ticket #253 (accepted defect)

Opened 7 years ago

Last modified 7 years ago

Swish shows error message with win-1250-encoded filename

Reported by: milos.krizan@gmail.com Owned by: alamaison
Priority: critical (affects core workflow) Milestone: 0.90 Beta 1
Component: i18n Version: 0.7.4
Keywords: utf8 win-1250 Cc:



I copied folders and files created in (I believe it is) win-1250 (folder example: Obsahové celky nové) via WINSCP SFTP console(default settings).

But I cannot read it or open the folder with Swish (or just see the folder written in win1250 characters coding). It says: Unable to access the directory. You might not have permission. Details: The data are passed to a system call is too small. Bug report information: Dynamic exception type: class boost::system::system_error std::exception::what: The data are passed to a system call is too small.

I believe this is the issue with character coding. So the Swish is unable to recognize the right characters... that's why is not able to open/view a folder/file.

Is there a possibility to fix the bug?
Thank you

I love the project. Cross fingers.



untitled.PNG Download (92.9 KB) - added by milos.krizan@gmail.com 7 years ago.
unable to open folder in Swish

Change History

Changed 7 years ago by milos.krizan@gmail.com

unable to open folder in Swish

comment:1 Changed 7 years ago by alamaison

  • Status changed from new to accepted
  • Summary changed from UTF-8 vs. win-1250 bug to Swish shows error message with win-1250-encoded filename
  • Component changed from undefined to i18n
  • Milestone changed from 0.7.x Bug sprint to 0.90 Beta 1

Firstly, if you use the new version  0.8.0 do you still get an error message, or is the filename just displayed wrongly?

Swish treats all filenames as UTF-8, so does WinSCP since 5.2.5. Am I right in thinking you copied the files using WinSCP < 5.2.5? If so, WinSCP named them on your server using your local PCs encoding (let's assume win-1250) and Swish tries to read them back as UTF-8 which causes the problem you are seeing. At the moment, there isn't an option to make Swish use another encoding (#158).

The only solution is to change the name of the directory to UTF-8 encoding. This isn't such a bad idea anyway because that's what Linux has used for years anyway. I'm curious, if you log into your server directly (i.e. using its screen and keyboard), does it display that folder name correctly? Unless you've changed it's default encoding to something non-UTF-8, it should have the same problem with that filename as Swish does.

Note: See TracTickets for help on using tickets.