On Thu, Oct 30, 2014 at 06:27:09AM +0100, Adam Borowski wrote: > Just replace %c with %lc, it will do the right thing both in ISO-8859-1 and > in Unicode locales. Not sure about other ancient charsets, but I can't > think of any reason to support them (including ISO-8859-1 for that matter) > in 2014 anymore. > > 0xB0 is ° in both ISO-8859-1 and in Unicode. ---end quoted text---
Tried that, but it made the output worse. Additionally I tried adding wchar.h to includes and declaraing 'symb' as wchar_t. Yet got the same result. Here's the result of running ipraytime after using %lc in the printf's: Prayer schedule for, City : القاهرة Latitude : 030 Longitude : 031 Angle Method : Egyptian General Authority of Survey (Egypt) TimeZone : UTC+2.0 Qibla : 137 As you would notice, the long/lat minutes & seconds dissappeared, and so is the newline chars. Can't understand why this happened! -- أحمد المحمودي (Ahmed El-Mahmoudy) Digital design engineer GPG KeyID: 0xEDDDA1B7 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7
signature.asc
Description: Digital signature