% perl -wc misc/export_borrowers.pl Use of the encoding pragma is deprecated at misc/export_borrowers.pl line 29. misc/export_borrowers.pl syntax OK
Created attachment 37620 [details] [review] Bug 13975: Remove compilation warning about encoding pragma deprecation Test plan: 0/ Does not apply the patch 1/ Launch the export_borrowers.pl script to export data with unicode characters % perl misc/export_borrowers.pl -w "borrowernumber=42" --field borrowernumber --field surname --field firstname Use of the encoding pragma is deprecated at misc/export_borrowers.pl 7874,JOUBU,صةصةصة 2/ Apply this patch 3/ Repeat 1 % perl misc/export_borrowers.pl -w "borrowernumber=42" --field borrowernumber --field surname --field firstname 7874,JOUBU,صةصةصة Note that the deprecated message is gone and the encoding is correct.
Created attachment 37676 [details] [review] Bug 13975: Remove compilation warning about encoding pragma Signed-off-by: Frederic Demians <f.demians@tamil.fr> I confirm the warning (on Perl version above 5.14). And that the patch fix the warning.
Created attachment 38034 [details] [review] Bug 13975: Remove compilation warning about encoding pragma
Patch pushed to master. Thanks Jonathan!
Pushed to 3.18.x will be in 3.18.6