Author Topic: Add ability to use localized filenames.  (Read 4857 times)

Offline moscow

  • Newcomer
  • Posts: 17
Add ability to use localized filenames.
« on: 2010 January 14 02:04:48 »
Hello.

Just today buy commercial licence. Before it, sure, try to 30day trial and found one disturb bug. PixInsight cant use files with russian text in name. Not a big problem, but very uncomfort, cause all my files was in russian subfolders or with russian names.

p.s. sorry for pure english.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Add ability to use localized filenames.
« Reply #1 on: 2010 January 14 08:50:34 »
Hello and welcome to PixInsight Forum.

Yes, you're right. The problem isn't with PixInsight itself, which fully supports Unicode strings, but with some third-party support libraries on which PixInsight depends, namely libtiff, fitsio, libjpeg and jasper. These libraries don't seem to support the full multi-byte character set for file names on Windows. For example, I can read and write FITS files with accentuated Latin vocals and "ñ" and "Ñ" characters in their names, but not with Cyrillic or Arabic characters for example.

As a test, try with the PNG and BMP formats. You should be able to use Cyrillic with PNG and BMP files without problems.

Note that this is a Windows-only problem. On Linux and Mac OS X, the operating system uses UTF-8 as the default file name encoding system. This has the advantage that even legacy libraries that rely on 8-bit character sets to store file names can work with Unicode transparently.

I'll try to fix this problem in the next version, by hacking the corresponding libraries as necessary. Sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline moscow

  • Newcomer
  • Posts: 17
Re: Add ability to use localized filenames.
« Reply #2 on: 2010 January 14 23:39:49 »
Thanks for reply and try to solve the problem.

Also, please take a look on fits with Russian (or other utf) in headers. PixInsight cant open such files also. It try, but... my color fits with russian fits headers opens only as gray, for example.

Sure, not a big problem. Will give english names to files from this time.

WBR