b'Magics-warning: CAIRO-PANGO: Error on line 1 char 72: Invalid UTF-8 encoded text in name - not valid \'mi\xc311\'\n for text: <span color="#000000" font_family="sansserif" size="7168">mi\xc311</span>\n'
b'Magics-warning: CAIRO-PANGO: Error on line 1 char 72: Invalid UTF-8 encoded text in name - not valid \'mi\xc318\'\n for text: <span color="#000000" font_family="sansserif" size="7168">mi\xc318</span>\n'
b'Magics-warning: CAIRO-PANGO: Error on line 1 char 72: Invalid UTF-8 encoded text in name - not valid \'mi\xc325\'\n for text: <span color="#000000" font_family="sansserif" size="7168">mi\xc325</span>\n'
b'Magics-warning: CAIRO-PANGO: Error on line 1 char 72: Invalid UTF-8 encoded text in name - not valid \'mi\xc311\'\n for text: <span color="#000000" font_family="sansserif" size="7168">mi\xc311</span>\n'
b'Magics-warning: CAIRO-PANGO: Error on line 1 char 72: Invalid UTF-8 encoded text in name - not valid \'mi\xc318\'\n for text: <span color="#000000" font_family="sansserif" size="7168">mi\xc318</span>\n'
b'Magics-warning: CAIRO-PANGO: Error on line 1 char 72: Invalid UTF-8 encoded text in name - not valid \'mi\xc325\'\n for text: <span color="#000000" font_family="sansserif" size="7168">mi\xc325</span>\n'
Plot shows the day of the week for Wednesday - (mi)ércoles - isn't plotted:
Compare with eps output which correctly shows "mi":
This also happens with other locales (LC_TIME settings) - not just es_ES.UTF-8.
What happened?
Magics does not plot all weekday names correctly for PNG/PDF output with LC_TIME=es_ES.UTF-8 (i.e., when CAIRO-PANGO is called).
What are the steps to reproduce the bug?
This is reproduced using the following Python script (based on Axis example 2):
Run as:
Output shows error messages from CAIRO-PANGO:
Plot shows the day of the week for Wednesday - (mi)ércoles - isn't plotted:
Compare with eps output which correctly shows "mi":
This also happens with other locales (LC_TIME settings) - not just es_ES.UTF-8.
See also plots attached to MAGP-1343 and SD-60066.
Version
4.14.1 and older
Platform (OS and architecture)
Linux ac6-200.bullx 4.18.0-372.52.1.el8_6.x86_64 #1 SMP Fri Mar 31 06:22:44 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
Relevant log output
No response
Accompanying data
No response
Organisation
ECMWF (reporting on behalf of AEMET)