From: Chet H. <che...@si...> - 2004-03-25 20:33:11
|
Hi Everton, I can't tell what is happening from that stack trace. It was not in RLIB at the time it crashed. I think that maybe RLIB does not remove its exception handler when it exits, or maybe it got stuck in a loop and got killed - can't tell. Anyway, was your database created with a specific encoding? The latest RLIB requires the DB to be in UTF8. That is probably why the characters are not coming out correctly. I suspected this might be a problem in this version, but making everything work out correctly could get very confusing. If this is the case, we need an input encoding for the datasource. I suspect that your DB is encoded as iso-8859-1. 1.1.8 versions of RLIB use UTF8 internally. libxml always produces UTF8. Does anyone know if there is a way to 'ask' the db what encoding it is using? That would eliminate the need for the app level to set it. Anyway, I'll make some changes so that you can set a datasource encoding. This would be the encoding used by the datasource. We could have a similar problem with passed parameters, if they are not UTF8 encoded. Chet Everton Luis Berz wrote: > encoding bugs: > > 1) > when I use: > rlib_set_output_encoding($rlib, 'ISO-8859-1'); > rlib_set_locale($rlib, 'pt_BR'); > it makes a "nuts we crashed" error.. > > 2) only set_locale line makes a blank pdf. > > 3) only output_encoding line makes report ok, but special iso-8859-1 > chars are removed. (see Bob mail above) > > follow the stack trace for 'nuts we crashed' error (bug #1). > > Reading symbols from /lib/libnss_compat.so.2...done. > Loaded symbols for /lib/libnss_compat.so.2 > #0 0x40433ac1 in kill () from /lib/libc.so.6 > (gdb) bt > #0 0x40433ac1 in kill () from /lib/libc.so.6 > #1 0x427c4d2b in myFaultHandler (signum=11, si=0x0, aptr=0x0) at > util.c:45 > #2 0x403c4c45 in __pthread_sighandler () from /lib/libpthread.so.0 > #3 <signal handler called> > #4 0x404822b5 in _int_free () from /lib/libc.so.6 > #5 0x404810bf in free () from /lib/libc.so.6 > #6 0x081744a3 in zend_hash_destroy (ht=0x81fb100) at > /usr/local/src/php-4.3.4/Zend/zend_hash.c:556 > #7 0x0817617f in zend_destroy_rsrc_list_dtors () at > /usr/local/src/php-4.3.4/Zend/zend_list.c:342 > #8 0x0816f5da in zend_shutdown () at > /usr/local/src/php-4.3.4/Zend/zend.c:557 > #9 0x08145e1f in php_module_shutdown () at > /usr/local/src/php-4.3.4/main/main.c:1284 > #10 0x0818261e in main (argc=2, argv=0xbffff854) at > /usr/local/src/php-4.3.4/sapi/cli/php_cli.c:876 > #11 0x4041fd06 in __libc_start_main () from /lib/libc.so.6 > > |