I don’t know about the rest of Europe, but here in Germany people have openly talked about their salary with me in several occasions. Granted, it wasn’t any coworkers, it was always a friend or someone I knew.
In Norway this is an open database which gets published annually and anyone can search in it to see what other people make.
It's not a digital wild-west open style though:
1. You have to authenticate using something which identifies you specifically as a citizen.
2. Another caveat is that people who gets looked up will be notified about that, with information about who it was who looked them up. (so it can't be used for direct covert spying)
That said, this system allows for a certain degree of transparency, and makes it easier for journalists, press, researchers etc to dig into issues such as social inequality.
I understand the motivation (even though I fundamentally disagree with it), but I find this rather inconsistent with issues such as 'the right to be forgotten' and other privacy initiatives put out by the EU.
I can see this one being taken to the EU Court of Justice by someone.
Here in Finland people are somewhat secretive (especially the older generation) about their pay but tax records are public information so you can calculate it from there if you really want to know how much someone is making. Though the system is kept offline on purpose and thus you have to go to the tax office and browse the paper records and take notes.
Keeping the pay secret is kinda puzzling on traditional fields as the salary structure is very rigid on those due to strong unions. Doesn’t apply much in IT though where it is just minimum wage set by unions and you negotiate for (much) more.