On Mon, Dec 23, 2013 at 4:56 AM, Jeffrey Kegler < [email protected]> wrote:
> Any idea why this is the fix? > None, unfortunately. > Just a peculiarity of the Windows port? > Looks like it. > Is there a reason the order should matter? -- jeffrey > It's not mentioned explicitly in the doc, but seems to be tacitly assumed that 'use utf8' must be at the top of the code. Looks like "at the top" also means "before use open..." that is frequently the case http://goo.gl/3bABVr > > On 12/22/2013 06:52 PM, Ruslan Shvedov wrote: > > On Mon, Dec 23, 2013 at 12:45 AM, Jeffrey Kegler < > [email protected]> wrote: > >> Fromn the logs, it looks like Unicode strings are being treated as >> Latin-1 after a round-trip through Marpa -- the bug Jean-Damien pinpointed >> and I (so I thought) fixed. >> > Yes, and that fixed bug shows IMHO in a third ('using strings') of the > tests passing. > > I just tested input strings utf8::is_utf8() in sl_advent.t and it shows > that they're not utf8 unlike in Jean-Damien's > perl6advent.day18.with.marpa.pl where that are read from __DATA__ section. > > And, once I move > > use utf8 > > > anywhere before > > use open ':std', ':encoding(utf8)'; > > > all tests pass. Pull request submitted, case closed I think. :) > > > -- > You received this message because you are subscribed to the Google Groups > "marpa parser" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
