Forums > MaxMSP

pattr and exotic symbols

April 18, 2008 | 11:19 am

Saving the content of a textedit object with pattrstorage is fine until exotic characters are used (took me an hour to figure this one out). When the character represented by Option-Shift-[dash] (on a mac) is part of the content, pattrstorage will complain:

error: pattrstorage: error converting text buffer -8785


April 18, 2008 | 11:19 am

Forgot to include patch

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 393 76 100 196617 not fine;
#P button 376 75 15 0;
#P message 382 104 66 196617 set a b c d —;
#P button 351 53 15 0;
#P message 354 223 75 196617 store 1 , write;
#P newex 356 245 67 196617 pattrstorage;
#X autorestore u216000019.xml;
#X client_rect 0 0 640 240;
#X storage_rect 0 0 640 240;
#P objectname u216000019;
#P newex 465 128 53 196617 autopattr;
#P objectname u751000017;
#P message 400 129 56 196617 set a b c d;
#P user textedit 400 162 612 205 32896 3 9;
#P objectname textedit;
#P comment 366 56 100 196617 fine;
#P comment 455 111 237 196617 last symbol is option+shift+dash (on mac);
#P connect 9 0 6 0;
#P connect 7 0 6 0;
#P connect 6 0 5 0;
#P connect 9 0 8 0;
#P connect 7 0 3 0;
#P connect 8 0 2 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P window clipboard copycount 11;


April 18, 2008 | 12:40 pm

Along with lots of other character encoding problems throughout the application, this has been fixed for Max 5.


April 18, 2008 | 2:03 pm

Yippee. Counting the seconds…

_
johan

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 20 74 331 581;
#P window setfont "Sans Serif" 9.;
#P newex 82 382 34 196617 % 24;
#P newex 50 382 31 196617 / 24;
#P newex 50 349 27 196617 t i i;
#P newex 50 423 177 196617 sprintf set %02d:%02d:%02d:%02d;
#P newex 85 330 34 196617 % 60;
#P newex 50 330 34 196617 / 60.;
#P newex 50 294 27 196617 t i i;
#P newex 85 275 34 196617 % 60;
#P newex 50 275 34 196617 / 60.;
#P newex 50 239 27 196617 t i i;
#P newex 91 106 54 196617 onebang 1;
#P newex 50 69 30 196617 t b b;
#P newex 50 50 64 196617 metro 1000;
#P newex 50 220 27 196617 +;
#P newex 65 163 91 196617 expr $i1+$i2+$i3;
#P message 143 145 58 196617 3600 60 1;
#P newex 65 144 77 196617 vexpr $i1*$i2;
#P message 142 126 52 196617 23 59 59;
#P newex 65 125 75 196617 vexpr $i2-$i1;
#P message 50 89 56 196617 time , date;
#P newex 50 201 105 196617 expr ($i2-1)*86400;
#P message 127 182 58 196617 4 22 2008;
#P newex 50 182 75 196617 vexpr $i2-$i1;
#P newex 50 106 40 196617 date;
#P inlet 50 30 15 0;
#P outlet 50 445 15 0;
#P connect 1 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 6 0;
#P connect 6 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 12 0;
#P connect 12 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 19 0;
#P connect 19 0 20 0;
#P connect 20 0 23 0;
#P connect 23 0 24 0;
#P connect 24 0 22 0;
#P connect 22 0 0 0;
#P connect 2 1 7 0;
#P connect 7 0 9 0;
#P connect 9 0 11 0;
#P connect 11 0 12 1;
#P connect 23 1 25 0;
#P connect 16 1 18 0;
#P connect 19 1 21 0;
#P connect 14 1 15 0;
#P connect 25 0 22 1;
#P connect 4 0 3 1;
#P connect 15 0 4 0;
#P connect 8 0 7 1;
#P connect 10 0 9 1;
#P connect 15 0 8 0;
#P connect 15 0 10 0;
#P connect 21 0 22 2;
#P connect 18 0 22 3;
#P pop;
#P newobj 41 57 97 196617 p max5 is coming!!!;
#P user textedit 41 77 137 100 32896 3 9;
#P noclick;
#P toggle 41 39 15 0;
#P connect 2 0 1 0;
#P connect 0 0 2 0;
#P window clipboard copycount 3;


April 19, 2008 | 5:21 am

jvkr schrieb:
> Yippee. Counting the seconds…

roughly 300000 left… better sleep three days…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


April 19, 2008 | 5:30 am

jvkr schrieb:
> Yippee. Counting the seconds…

roughly 300000 left… better sleep three days…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


Viewing 6 posts - 1 through 6 (of 6 total)