EU lawmakers voted Wednesday for legislation that would set prison sentences and fines for large-scale commercial piracy, but exempt patents and copying carried out for personal use.

The draft rules would make it a crime for anyone who knowingly breaks intellectual property rights by copying music, movies, medicines or luxury goods on a commercial scale.