Bug compatibility


Computer hardware or software is said to be bug compatible if it exactly replicates even an undesirable feature of a previous version. The phrase is found in the Jargon File.
An aspect of maintaining backward compatibility with an older system is that such systems' client programs often do not only depend on their specified interfaces but also bugs and unintended behaviour. That must also be preserved by the newer replacement. Besides the significantly higher complexity that needs to be maintained during the natural evolution of the code or interface, it can sometimes cause performance or security issues, and the inconsistencies in the behaviour of interfaces can sometimes lead to new bugs in the software using it, creating difficult to resolve multi-directional cross dependencies between various pieces of code.
Examples can be found in MS-DOS/PC DOS; when running on 286 or higher processors, the resident executable loader contains code specially designed to detect and fix certain widespread applications and stub loaders by patching the loaded program image before executing it, or where DOS patches Windows Over the course of development, DR-DOS also had to be modified to not only emulate many undocumented peculiarities of MS-DOS and PC DOS, but also actual bugs in the kernel and several drivers, in order to make certain other drivers and applications run on DR-DOS, when they were tested on specific versions of MS-DOS only.
Windows, which has traditionally emulated many old system bugs to allow older low-level programs to run, is another example. As a result, Wine, which makes it possible to run many Windows applications on other platforms, also needs to maintain bug compatibility with Windows.
During development of its IBM PC compatible, Compaq engineers found that Microsoft Flight Simulator would not run because of what subLOGIC's Bruce Artwick described as "a bug in one of Intel's chips", forcing them to make their computer bug-compatible with the IBM PC. Another hardware example is found in the design of the IBM Personal Computer/AT A20 address line to emulate the behaviour in older processors.
Microsoft Excel has always had a deliberate leap year bug, which falsely treats February 29, 1900 as an actual date, to ensure backward compatibility with Lotus 1-2-3.