Old Bugs, Old Bugs
Feb. 13th, 2017 11:25 pmThere is nothing like finding a really old bug in the code.
Today, someone sent me a file and said, "This won't open. It doesn't open in the older version either."
I tried opening the file and discovered that they were correct. Hmm. I opened up the file in an editor just to check and make sure that it was, in general, correctly formatted, which it was. Of course, there could be something more subtle wrong.
Nope, nothing subtle about it at all.
Someone had once -- and against my advice -- put in a check for the specific file extension that we use for our files to solve a particular problem that they were dealing with. That obviously wasn't the problem here, because the file had the correct extension.
In ALL CAPS. Darned shame that whoever was checking for the extension had written code that checked for the extension in all lower case.
The comparison is now case-insensitive.
And the very old bug has gone away.
Today, someone sent me a file and said, "This won't open. It doesn't open in the older version either."
I tried opening the file and discovered that they were correct. Hmm. I opened up the file in an editor just to check and make sure that it was, in general, correctly formatted, which it was. Of course, there could be something more subtle wrong.
Nope, nothing subtle about it at all.
Someone had once -- and against my advice -- put in a check for the specific file extension that we use for our files to solve a particular problem that they were dealing with. That obviously wasn't the problem here, because the file had the correct extension.
In ALL CAPS. Darned shame that whoever was checking for the extension had written code that checked for the extension in all lower case.
The comparison is now case-insensitive.
And the very old bug has gone away.