An old railroad man once told me that locomotives were all “She” as a function of how difficult it is to weigh one. Most railroaders who were “for real” on steam engines refer to them as “she” … and most non-museum diesels the less personal “it.” Museum Diesels seem to be the bailiwick of the same kind of people who love steam engines, or modern diesel guys with a love of history, so it’s a coin flip.
Or … so I thought. It seems to be geographical. Russia and Eastern Europe you seem to hear a lot about “Him” while Germany (as has already been pointed out) uses the feminine. I cannot imagine thinking of some of the more famous British engines named for various lords and generals in the female… (and then, of course there’s Thomas, James, and the lot who would be most upset!)
Guess it depends on where you stand, and who you love… whether your machine is your mistress or your comerade… and whether your job is your work or your passion (or a bit of both.)
Matthew (OV)