Bug 31282: Fix broken characters in patron_emailer.pl verbose mode
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 2 Aug 2022 12:24:57 +0000 (09:24 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 14 Oct 2022 19:17:11 +0000 (19:17 +0000)
commit418da38327e9456592b4a7fdde8375918b3ca9fb
treed345df82f77664162ae16381cb795dc216d4b71f
parentc0063bbda2c1bbf9407a0e166f901a7aaf5dc15e
Bug 31282: Fix broken characters in patron_emailer.pl verbose mode

To test:
1. Have a report containing:
   SELECT tomascohen@theke.io;
2. Have a members notice containing ยก and other non-ASCII characters.
3. Run (changing the report number and notice code accordingly):
   $ kshell
  k$ perl misc/cronjobs/patron_emailer.pl --report 4 \
           --notice BIRTHDAY --from tomascohen@theke.io --module members
=> FAIL: non-ASCII characters are broken
4. Apply this patch
5. Repeat 3
=> SUCCESS: Things print correctly!
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9afbe872b7e63ce1d88cf6896df3b1046529212b)
misc/cronjobs/patron_emailer.pl