In France, a noncompete clause is only enforceable if the contract provides adequate specific compensation for it... Often it doesn't and ends up unenforceable.
Germany also requires a comp' (a significant fraction of gross), FWIW. And has a hard-limit to 2 years, and a number of restrictions. Much like France.