Bug#611775: utf-8 issue

2011-02-05 Thread Joey Hess
John Goerzen wrote: > Can you try this patch? Works ok for `twidge «utf8»` (Haven't checked that piping to twidge is still ok.) -- see shy jo signature.asc Description: Digital signature

Bug#611775: utf-8 issue

2011-02-05 Thread John Goerzen
On 02/02/2011 04:38 PM, Joey Hess wrote: John Goerzen wrote: On 02/01/2011 09:25 PM, Joey Hess wrote: I believe what's happening is approximatly that getArgs returns a raw 8-bit encoded String. Then when it's output to whatever sends it to identica, Haskell's IO layer tries to encode it as uni

Bug#611775: utf-8 issue

2011-02-02 Thread Joey Hess
John Goerzen wrote: > On 02/01/2011 09:25 PM, Joey Hess wrote: > > >I believe what's happening is approximatly that getArgs returns > >a raw 8-bit encoded String. Then when it's output to whatever sends > >it to identica, Haskell's IO layer tries to encode it as unicode. > > That is probably righ

Bug#611775: utf-8 issue

2011-02-02 Thread John Goerzen
On 02/01/2011 09:25 PM, Joey Hess wrote: I believe what's happening is approximatly that getArgs returns a raw 8-bit encoded String. Then when it's output to whatever sends it to identica, Haskell's IO layer tries to encode it as unicode. That is probably right. To make sure, can you try pipi

Bug#611775: utf-8 issue

2011-02-01 Thread Joey Hess
Package: twidge Version: 1.0.8.1 Severity: normal http://identi.ca/notice/63487722 This post was made by running: twidge $(cat foo) where foo contains the content attached to this mail. AFAICS, everything in foo is valid unicode, but the ü«» were damaged before they reached identica. (I assume i