Narrative:

While en route; I experienced an electrical failure between harford and gettysburg. The alternator quit charging and the battery discharged. I lost the radios; transponder; navigation lights; etc. The GPS was still operational and I obtained the closest airport and proceeded there and landed. By doing so I accidentally entered the extended P-40 airspace by 1.5 mi.

Google
 

Original NASA ASRS Text

Title: C172 PLT ENTERS THE P-40 TFR.

Narrative: WHILE ENRTE; I EXPERIENCED AN ELECTRICAL FAILURE BTWN HARFORD AND GETTYSBURG. THE ALTERNATOR QUIT CHARGING AND THE BATTERY DISCHARGED. I LOST THE RADIOS; XPONDER; NAV LIGHTS; ETC. THE GPS WAS STILL OPERATIONAL AND I OBTAINED THE CLOSEST ARPT AND PROCEEDED THERE AND LANDED. BY DOING SO I ACCIDENTALLY ENTERED THE EXTENDED P-40 AIRSPACE BY 1.5 MI.

Data retrieved from NASA's ASRS site as of January 2009 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.