L' Academie Francaise laboured long over this question. It was eventually decided that in the unlikely event of the French voting for a woman, she would be termed "Madame, Le Président"
Queen Elizabeth I had no compulsion about adopting the male gender, describing herself as a prince.
Funny you should say that. I didn't watch any of 24 when it was broadcast, so now I'm watching it on Netflix. So far, they've had a black male President, a white male President, and just the other night (whilst halfway through series four), I wondered, "Will they have a female President down the line".