*** jcater_ has joined #gnuenterprise *** holycow has joined #gnuenterprise *** jcater_ has quit IRC *** sjc has joined #gnuenterprise *** kilo has joined #gnuenterprise *** holycow has quit IRC *** drewc has quit IRC *** drewc has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** dsmith has joined #gnuenterprise *** dimas has joined #gnuenterprise *** btami has joined #gnuenterprise johannesV: are you here? i'm fighting with a strange bug on XP -------------------------------- c:\python23\scripts>setup-db c:\python23\scripts>python gnue-schema --connection=gnue --createdb base.gsd 'base.gsd' gsd fßjl bet÷ltÚse... ************************************************************ Attempting to log into "Security Database" (as SYSDBA): Password: ************************************************************ SÚma frissÝtÚse ... Adatok frissÝtÚse ... 'ascii' codec can't decode byte 0xe1 in position 5: ordinal not in range(128) c:\python23\scripts>python gnue-gcd2sql --connection=gnue auth.gcd sample.gcd 'ascii' codec can't decode byte 0xe1 in position 9: ---------------------------------------- i get this with firebird but on Linux there is no bug, setup-sb runs without errors ? bbl *** btami has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** btami has joined #gnuenterprise johannesV_: the line 510 in Scripter.py print _(" updating table '%s' ...") % tablename just don't understand why this is fails on win :( *** btami has quit IRC *** btami has joined #gnuenterprise *** kilo has quit IRC *** btami has quit IRC *** jcater_ has joined #gnuenterprise *** jcater has quit IRC *** jcater_ has joined #gnuenterprise *** ChanServ sets mode: +o jcater *** jcater_ was kicked by jcater (jcater) *** jcater sets mode: -o jcater *** jamest has joined #gnuenterprise * apropos is back from away after 1 day 18 hrs 20 mins *** reinhard has joined #gnuenterprise *** bluesbaron_ has joined #gnuenterprise *** bluesbaron_ has left #gnuenterprise *** johannesV_ has left #gnuenterprise *** mangomadness has quit IRC *** btami has joined #gnuenterprise hi hi btami you got my mail? yes :) was your u_() commit a fix for your windows problem? yes, but i don't force u_(), just applied johannes fix again in gcd2sql he fixed Scripter.py this way... btw. it (the fix) works :) maybe print can be changed to GDebug() message if 2.1 compatibility is important well, for 2.1 compatibility we've done much worse hacks than this who using 2.1 ? and I'm not sure what 2.2. will do with this i only can test 2.1 and 2.3 it works with 2.3 but breaks 2.1 woody has 2.1 only ? all people using debian stable use 2.1 yes i see i think as soon as sarge is stable we will move to 2.3 as a requirement as it will give us *lots* of good stuff like boolean type not has woody 2.2 too ? builtin xmlrpc no no 2.2 in woody maybe backports, but not official but i still don't understand why the code breaks under windows the error you get should *never* happen with policy = 'replace' by definition ah oh now i get it reinhard: woody has 2.2 http://packages.debian.org/cgi-bin/search_packages.pl?keywords=python&searchon=names&subword=1&version=stable&release=all doh you are right hmmm sorry :) i think we still should talk to jcater and jamest but seeing this i would be ok with depending on 2.2 I think we need to sequester the debian folks and force them to release =) btami: FWIW i think the correct patch that doesn't break anything would be print _(" updating table '%s' ...") % tablename print o(u_(" updating table '%s' ...") % tablename) pretty :) the reason why the original code breaks is tablename is a unicode string yes, i realized _() returns an encoded 8-bit string so _() % tablename tries to decode the translation to unciode but not knowing what character set to use for translation so u() % tablename will work because it's unicode % unicode but then you have to o() it to send it to "print" so print then again gets 8-bit string hopefully Johannes will read this sigh if i knew which fool it was to decide some 40 years ago that 8 bits are enough to store a character i think i would punch his nose ;-) well gotta go to bed night all *** reinhard has quit IRC isn't tablename.encode('utf-8') simpler ? night *** btami has quit IRC *** sjc has quit IRC *** jcater has quit IRC *** nickr has quit IRC *** nickr has joined #gnuenterprise *** jcater has joined #gnuenterprise *** mangomadness has joined #gnuenterprise *** tocer has joined #gnuenterprise *** jamest has quit IRC *** jcater has quit IRC *** jcater has joined #gnuenterprise *** tocer has left #gnuenterprise *** dyfet has joined #gnuenterprise *** jcater has quit IRC *** dyfet has left #gnuenterprise *** holycow has joined #gnuenterprise *** nickr has quit IRC *** jcater has joined #gnuenterprise *** jcater has quit IRC *** dcmwai has joined #gnuenterprise