[Glass] Problem with UTF8 encoding and Monticello after GLASS update

Mariano Martinez Peck marianopeck at gmail.com
Mon Aug 25 13:47:57 PDT 2014


Hi guys.

I have a strange situation. I have 2 stones. Both using 3.1.0.5. One stone
(let's call it the OLD), was created several months ago. The other site,
let's call it the NEW, was built a week ago.

I have just updated GLASS in both of them, using this expression:

Metacello new
  baseline: 'GLASS1';
  repository: 'github://glassdb/glass:master/repository';
  onConflict: [ :ex | ex allow ];
  onWarning: [ :ex |
        Transcript
          cr;
          show: ex description.
        ex resume ];
  load: 'default'.

After that... the NEW works ok. But the LAST, I cannot read any more
packages from Monticello, since I am getting a UTF error. I debug it and I
arrive to this difference:

In NEW stone (the one that works), this works:

(UTF8Encoding newEncoder encode:
'ConfigurationOfIAM-MarianoMartinezPeck.68.mcz') asString

In OLD stone, it yields a:   "a ArgumentTypeError occurred (error 2719),
for aCollection  expected a anArray( String, ByteArray), arg is a Utf8"
 when it tries to do the #asString.

The difference is that NEW #encode: answers a string. While the OLD answers
a Utf8 instance.

So....any workaround?

Thanks,



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140825/52d9ca54/attachment.html>


More information about the Glass mailing list