There are crude, obnoxious shops in every industry. From what I've heard, telecom is much worse than programming in this respect. I am a female programmer, and my workplace has a reasonable mix of people (yes, it's slanted toward male and young -- but that is the biology that's best at visual thinking, working too many hours, and dealing with silly deadlines). If you make sure there are policies that reduce the on-call load and overall unpredictability of work hours, you'll get women and married guys. So you have code reviews; have a real process for moving code out the door; have a process for discovering process failures and fixing them; try to split work into chunks that aren't two full-time jobs per person, etc. And look at that! You've reduced your turnover (even in the young guys), reduced software failures, and increased creativity (partly because your people are awake, partly because of the variety of people). Maybe you're spending more, but it's probably actually worth it for the reduction in risk.
You do some culture-fit checking in the interviews. You don't hire the ones who come close to committing HR violations in the interviews. You have women and less-young men around, and this subtly reminds the young guys to not get bad habits (c'mon, they're reasonably bright, they're trainable, they grew up in an enlightened world, they _do_ know better).