I thought we had a similar law in France until the 1980's but apparently I was at least partly mistaken:
>Although same-sex sexual activity was a capital crime that often resulted in the death penalty during the Ancien Régime, all sodomy laws were repealed in 1791 during the French Revolution. However, a lesser known indecent exposure law that often targeted homosexuals was introduced in 1960 before being repealed twenty years later.
So vive la révolution I guess.