Author Topic: Handling of file names with multiple periods  (Read 3352 times)

Offline Thorsten Lockert

  • Newcomer
  • Posts: 36
    • Personal Home Page
Handling of file names with multiple periods
« on: 2009 April 12 12:07:37 »
If a file name has multiple periods in it, PixInsight is unable to open it.

One example of such a file name is "DO Dra V.12345.11h43m48.04s,-71d41m20s.FIT"

PixInsight apparently looks for the first period to find the file extension instead of the last, and then says it does not have a handler that knows how to open files of type ".12345.11h43m48.04s,-71d41m20s.FIT".

If the file is renamed such that only the last period is part of the file name, it will open it successfully.

Perhaps use strrchr/rindex to find the last period in the file name?

Thorsten

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Handling of file names with multiple periods
« Reply #1 on: 2009 April 13 11:38:11 »
Hi Thorsten,

This is a known bug in version 1.4 (see for example http://pixinsight.com/forum/viewtopic.php?t=1053). It has been fixed in version 1.5, which will be released very soon.

Thank you for your report.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/