I'm still neck deep in Jifty dispatcher for $job, so there is nothing much to report today, except that I've released two more versions of YAML::Syck, with support for loading/dumping of Unicode strings, scalar references, as well as dumping self-recursive data structures.
As syck doesn't have native Unicode support, I had to do some syck hacking to get these features implemented... I'll find some time to package it up properly and send back to Why, after this weekend's Pugs 6.2.11 release.
Man. You are a syck!
(In the good way)
-ben
Posted by: Ben Bennett | 2006.01.12 at 08:34 AM
The Syck repository is open for all (you have to have a Rubyforge account as a prerequisite):
I've sort of glanced through perl_syck.h. How nice that Perl has a pile of UTF-8 calls.
Posted by: why | 2006.01.13 at 01:42 AM
a dumb question...
YAML::Syck munges Unicode text into \xHH format, whilst YAML doesn't.
i understand that this is a limitation of libsyck itself. but how do i convert the munged text back into native Unicode?
Posted by: orly | 2006.01.19 at 07:11 PM
Set $YAML::Syck::ImplicitUnicode to a true value.
Also, if your Unicode text is properly marked as such (via utf8::decode or Encode::decode or the :encoding or :utf8 input layer), then it should serialize without escaping.
It's arguably broken if YAML.pm serializes unmarked byte strings into unescaped UTF-8.
Posted by: Audrey T | 2006.01.20 at 01:56 AM
Nevertheless, it would be nice, if you can find some time to send it back to Why.
Posted by: stas | 2006.12.02 at 10:40 AM
Why is aware of my UTF8 treatment and we've discussed it on #perl6 a while ago. :-) (Hi stas!)
Posted by: Audrey Tang | 2006.12.11 at 12:13 PM