It is even worse in France: if you code open source "on the side" of you work, at home, the company which employs you may claim the copyrights of it. I had to add explicit exclusion of this claim of copyrights in my job contracts to protect my personal work.
That was a few years back, dunno if that was fixed.