French operator SNCF has previously asked passengers to self-declare as ‘Monsieur’ or ‘Madame’.
The EU’s top court ruled on Thursday that requiring rail passengers to declare a gender when buying a ticket is in breach of the EU’s General Data Protection Regulation (GDPR).
I think it wouldn’t fly either since verdict was that this is GDPR problem - there was no need to collect this info.