[Debian-Islamic-maintainers] Bug#755269: Bug#755269: you want %lc instead of %c

أحمد المحمودي aelmahmoudy at users.sourceforge.net
Thu Oct 30 07:31:33 GMT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-islamic-maintainers/attachments/20141030/9d4aaead/attachment-0005.sig>


More information about the Debian-islamic-maintainers mailing list