So there's an episode of the '80s TV show Buck Rogers in the 25th Century which I vividly recall because it contained some actual science fiction. Buck finds himself in prison, and is astonished by the inmates.
When did the penal system go co-ed?
You know, boys and girls together.
How else would you do it?
Men in one place, women in another.
You know the problems that would cause?
After writing this up and dropping it in my drafts folder, I was able to get the exact quote as a result of Rogers at Kung Fu Monkey, who led me to discover a YouTube video which starts off with the exact scene. It turns out that the prisoner Buck was talking to was played by none other than Jamie Lee Curtis.