billroper: (Default)
[personal profile] billroper
There 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.

Date: 2017-02-14 07:10 am (UTC)
From: [identity profile] tigertoy.livejournal.com
The eternal question: how could a bug this stupid have been around for this long?

Date: 2017-02-14 07:04 pm (UTC)
From: [identity profile] rinioth.livejournal.com
Maybe the person writing the code was from a Unix/Linux background where file names *are* case sensitive.

Profile

billroper: (Default)
billroper

May 2025

S M T W T F S
     1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 1st, 2025 08:55 pm
Powered by Dreamwidth Studios