Menu

Tiny bug (4.01): Modified/Created date

2007-02-24
2012-11-13
  • Nobody/Anonymous

    When I try to open a file which has these dates...
    Created: 1. jaanuar 1601. a., 2:07:09
    Modified: 8. jaanuar 2962. a., 18:42:40
    Accessed: 1. jaanuar 1601. a., 2:07:09
    ... then Notepad++ just crashes.

    I wonder what's causing it. Notepad++ doesn't seem to do anything with these dates...
    This file was generated using SetFileTime().

     
    • Nobody/Anonymous

      Out of curiosity, try creating files for Jan 1st, 2038 and Jan 1st, 2039.  If the first one works and the second one doesn't, I'd guess there's a Y2K38 bug in N++.  That's when the 32-bit integer counter for the number of seconds in the Unix epoch runs out.

      I'm having trouble creating such a file because my Unixy touch.exe won't do anything past the end of the Unix epoch, and neither will utime in Perl.  With enough persistence, I'm sure I can get SetFileTime working using Win32::API in Perl, but you've obviously got something written to do that, so you might as well test it!

      My gut instinct (not having ever even glanced at the N++ codebase) is that it's related to the file-update notification stuff.

      :-)

      --Toby Ovod-Everett