A friend has just had a telephone interview with a prestigious software company. On the call he was asked about his views on the lack of women in IT. The company is very keen on encouraging women into IT; they run seminars on this and more. While he would have been well advised to go along with their line, he was in fact honest. He told them he believes there's a lack of women in IT because fewer women want to work in IT.
He has now been rejected from the job, without any further assessment. Although they gave a line that "there's no role that matches your skills" the recruiter specifically mentioned his views on women in IT in the rejection email.
I suggested to him that this may be illegal under discrimination law. Does anyone have knowledge of this? We are in the UK, but it is an international company, so I'd be interested on views from anywhere.
Edit - This question is relevant to recent events