g_unichar_totitle(0) returns 0x00001F88 instead of 0
Submitted by Ivan Peikov
Link to original bug (#526123)
Description
Please describe the problem: The title-case version of 0 is obviously 0 (according to the Unicode standard). However, due to the title-case characters implementation in glib (title_table[]) 0 is also used whenever no lower/upper version of the title-case character exists. This leads to the buggy behavior.
Steps to reproduce:
- pass 0 to g_unichar_totitle()
Actual results: returns 0x00001F88
Expected results: 0
Does this happen every time? yes
Other information:
Version: 2.16.x