From markus.hoenicka at mhoenicka.de Sun Dec 9 09:54:55 2007 From: markus.hoenicka at mhoenicka.de (Markus Hoenicka) Date: Sun Dec 9 09:55:01 2007 Subject: firebird2 API woes Message-ID: <18268.10011.812334.20904@yeti.mininet> Hi, I'm having a hard time connecting to a firebird 2.0.3 server installed on FreeBSD 6.1 through the C API calls. The connection code is pretty much copy+pasted from the API documentation. However, all calls to isc_attach_database() cause the client library to segfault: #1 0x2852ceb4 in return_success () from /usr/local/lib/libfbclient.so.2 #2 0x28525179 in REM_attach_database () from /usr/local/lib/libfbclient.so.2 #3 0x2851386a in isc_attach_database () from /usr/local/lib/libfbclient.so.2 #4 0x284ece8e in _dbd_real_connect () from /usr/local/lib/dbd/libdbdfirebird.so #5 0x284eba19 in dbd_connect () from /usr/local/lib/dbd/libdbdfirebird.so #6 0x2808011d in dbi_conn_connect () from /usr/local/lib/libdbi.so.0 #7 0x0804982a in main (argc=1, argv=0xbfbfea2c) at test_dbi.c:91 The database I'm trying to attach to does exist, and I can attach to it using the isql command line utility. Is this a known issue? I have to admit that I'm not too familiar with firebird. All I'm trying to do is to upgrade the firebird driver of the libdbi-drivers project (http://libdbi-drivers.sourceforge.net, also available as a FreeBSD port). I'd greatly appreciate if someone more experienced in programming for firebird could give me a hint. I'll be happy to provide all sorts of debug information if needed. regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de From saper at system.pl Sun Dec 16 12:05:02 2007 From: saper at system.pl (Marcin Cieslak) Date: Sun Dec 16 12:05:07 2007 Subject: Oracle SQL Developer In-Reply-To: References: Message-ID: martinko wrote: > Hallo, > > Would someone care to port Oracle's SQL Developer to FreeBSD, please ? > > > > > Many thanks in advance! There is actually nothing to port, just download the non-JRE platform independent zip file, unpack and run "bash sqldeveloper" from sqldeveloper/sqldeveloper/bin directory. Works for me (7.0-BETA3 on amd64, self-compiled sun jdk15 from ports). --Marcin From gamato at users.sf.net Tue Dec 18 15:55:10 2007 From: gamato at users.sf.net (martinko) Date: Tue Dec 18 15:55:13 2007 Subject: Oracle SQL Developer Message-ID: Hallo, Would someone care to port Oracle's SQL Developer to FreeBSD, please ? Many thanks in advance! Martin From ismail at EnderUNIX.org Wed Dec 19 12:42:42 2007 From: ismail at EnderUNIX.org (Ismail YENIGUL) Date: Wed Dec 19 12:42:45 2007 Subject: Turkish character sorting on PostgreSQL Message-ID: <1605513356.20071219221424@EnderUNIX.org> Hello, I am using PostgreSQL 8.2.5 on FreeBSD 6.2. But I have a problem with sorting Turkish characters. They are listed after "z" character. I initialized the PostgreSQL with the following values: initdb -E UNICODE --locale=tr_TR.UTF-8 and initdb -E LATIN5 --locale tr_TR.ISO8859-9 But the result is like the following: SELECT * from test order by name; "id";"name" 1;"aa" 3;"dd" 6;"mm" 5;"zz" 2;"??" 4;"?" There is no problem on Linux with the same data. How can I solve this problem? Thanks. -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + http://www.enderunix.org/ismail http://www.endersys.com.tr + + EnderUNIX SDT @ Tr Endersys Consultancy Ltd. + + ismail ~ enderunix.org ismail.yenigul ~ endersys.com.tr + + Volunteer, Core Team Member Project Manager + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From ivoras at freebsd.org Thu Dec 20 02:45:00 2007 From: ivoras at freebsd.org (Ivan Voras) Date: Thu Dec 20 02:45:58 2007 Subject: Turkish character sorting on PostgreSQL In-Reply-To: <1605513356.20071219221424@EnderUNIX.org> References: <1605513356.20071219221424@EnderUNIX.org> Message-ID: Ismail YENIGUL wrote: > Hello, > > I am using PostgreSQL 8.2.5 on FreeBSD 6.2. But I have a problem with > sorting Turkish characters. They are listed after "z" character. > I initialized the PostgreSQL with the following values: > > initdb -E UNICODE --locale=tr_TR.UTF-8 and Unicode (UTF-8) collations (sorting) don't work on FreeBSD. You can use PostgreSQL 8.1 and the "ICU" patch for it. > initdb -E LATIN5 --locale tr_TR.ISO8859-9 This could work, if the locale is properly defined in the system locale database. Try creating a small C program that sorts your strings using strcoll() to verify this - if the small C program works, it's a PostgreSQL problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 194 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-database/attachments/20071220/3481772b/signature.pgp From ismail at EnderUNIX.org Sat Dec 22 09:09:28 2007 From: ismail at EnderUNIX.org (Ismail YENIGUL) Date: Sat Dec 22 09:09:34 2007 Subject: Turkish character sorting on PostgreSQL In-Reply-To: References: <1605513356.20071219221424@EnderUNIX.org> Message-ID: <879443695.20071222190910@EnderUNIX.org> Hello Ivan, Here is the test result. It seems that the problem is on FreeBSD (6.2) . Because ? and ? are before then z in Turkish alphabet. # cat a.c #include int main() { setlocale(LC_COLLATE, "tr_TR.ISO8859-9"); printf("%d\n",strcoll("?", "z")); printf("%d\n",strcoll("?", "z")); } ftpfreebsd[~]# ./a 124 130 ftpfreebsd[~]# By the way, LC_COLLATE is link to the ../la_LN.US-ASCII/LC_COLLATE in /usr/share/locale/tr_TR.ISO8859-9 directory. Does this mean that LC_COLLATE is missing for tr_TR.ISO8859-9 ? # ls -al /usr/share/locale/tr_TR.ISO8859-9/ total 14 drwxr-xr-x 2 root wheel 512 Jul 9 15:32 . drwxr-xr-x 157 root wheel 4096 Dec 4 2006 .. lrwxr-xr-x 1 root wheel 28 Jul 9 15:32 LC_COLLATE -> ../la_LN.US-ASCII/LC_COLLATE lrwxr-xr-x 1 root wheel 26 Jul 9 15:32 LC_CTYPE -> ../la_LN.US-ASCII/LC_CTYPE -r--r--r-- 1 root wheel 18 Jul 9 15:32 LC_MESSAGES -r--r--r-- 1 root wheel 34 Jul 9 15:32 LC_MONETARY -r--r--r-- 1 root wheel 8 Jul 9 15:32 LC_NUMERIC -r--r--r-- 1 root wheel 352 Jul 9 15:32 LC_TIME and there is no file spesicific to the tr_TR.ISO8859-9 in /usr/src/share/colldef/ # ls /usr/src/share/colldef/ Makefile el_GR.ISO8859-7.src la_LN.ISO8859-15.src map.ISO8859-1 ru_RU.CP1251.src README en_DK.example la_LN.ISO8859-2.src map.ISO8859-13 ru_RU.CP866.src be_BY.CP1131.src es_ES.ISO8859-1.src la_LN.ISO8859-4.src map.ISO8859-15 ru_RU.ISO8859-5.src be_BY.CP1251.src es_ES.ISO8859-15.src la_LN.US-ASCII.src map.ISO8859-2 ru_RU.KOI8-R.src be_BY.ISO8859-5.src et_EE.ISO8859-15.src lt_LT.ISO8859-13.src map.ISO8859-4 sl_SI.ISO8859-2.src bg_BG.CP1251.src hi_IN.ISCII-DEV.src lt_LT.ISO8859-4.src map.ISO8859-5 sr_YU.ISO8859-5.src ca_ES.ISO8859-1.src hy_AM.ARMSCII-8.src map.ARMSCII-8 map.ISO8859-7 sv_SE.ISO8859-1.src ca_ES.ISO8859-15.src is_IS.ISO8859-1.src map.CP1131 map.KOI8-R sv_SE.ISO8859-15.src cs_CZ.ISO8859-2.src is_IS.ISO8859-15.src map.CP1251 map.KOI8-U uk_UA.CP1251.src de_DE.ISO8859-1.src kk_KZ.PT154.src map.CP866 map.PT154 uk_UA.ISO8859-5.src de_DE.ISO8859-15.src la_LN.ISO8859-1.src map.ISCII-DEV pl_PL.ISO8859-2.src uk_UA.KOI8-U.src Thursday, December 20, 2007, 12:44:34 PM, you wrote: > Ismail YENIGUL wrote: >> Hello, >> >> I am using PostgreSQL 8.2.5 on FreeBSD 6.2. But I have a problem with >> sorting Turkish characters. They are listed after "z" character. >> I initialized the PostgreSQL with the following values: >> >> initdb -E UNICODE --locale=tr_TR.UTF-8 and > Unicode (UTF-8) collations (sorting) don't work on FreeBSD. You can use > PostgreSQL 8.1 and the "ICU" patch for it. >> initdb -E LATIN5 --locale tr_TR.ISO8859-9 > This could work, if the locale is properly defined in the system locale > database. Try creating a small C program that sorts your strings using > strcoll() to verify this - if the small C program works, it's a > PostgreSQL problem. -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + http://www.enderunix.org/ismail http://www.endersys.com.tr + + EnderUNIX SDT @ Tr Endersys Consultancy Ltd. + + ismail ~ enderunix.org ismail.yenigul ~ endersys.com.tr + + Volunteer, Core Team Member Project Manager + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TCP/IP ve A? g?venli?i kitab?n?n 2. bask?s? ??kt?! http://dukkan.acikakademi.com From ivoras at freebsd.org Sat Dec 22 15:03:19 2007 From: ivoras at freebsd.org (Ivan Voras) Date: Sat Dec 22 15:03:22 2007 Subject: Turkish character sorting on PostgreSQL In-Reply-To: <879443695.20071222190910@EnderUNIX.org> References: <1605513356.20071219221424@EnderUNIX.org> <879443695.20071222190910@EnderUNIX.org> Message-ID: <9bbcef730712221435o1f1227a1l1ca840e1474aacfb@mail.gmail.com> On 22/12/2007, Ismail YENIGUL wrote: > By the way, LC_COLLATE is link to the ../la_LN.US-ASCII/LC_COLLATE > in /usr/share/locale/tr_TR.ISO8859-9 directory. Does this mean that > LC_COLLATE is missing for tr_TR.ISO8859-9 ? Yes. From ismail at EnderUNIX.org Sun Dec 23 06:41:29 2007 From: ismail at EnderUNIX.org (Ismail YENIGUL) Date: Sun Dec 23 06:41:33 2007 Subject: Turkish character sorting on PostgreSQL In-Reply-To: <9bbcef730712221435o1f1227a1l1ca840e1474aacfb@mail.gmail.com> References: <1605513356.20071219221424@EnderUNIX.org> <879443695.20071222190910@EnderUNIX.org> <9bbcef730712221435o1f1227a1l1ca840e1474aacfb@mail.gmail.com> Message-ID: <892749461.20071223164114@EnderUNIX.org> Hello, I am volunteer for this issue. But, I don't know how to create a locale Can someone give me hints(url, howto etc) about this issue? Thanks in advance. Sunday, December 23, 2007, 12:35:08 AM, you wrote: > On 22/12/2007, Ismail YENIGUL wrote: >> By the way, LC_COLLATE is link to the ../la_LN.US-ASCII/LC_COLLATE >> in /usr/share/locale/tr_TR.ISO8859-9 directory. Does this mean that >> LC_COLLATE is missing for tr_TR.ISO8859-9 ? > Yes. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + http://www.enderunix.org/ismail http://www.endersys.com.tr + + EnderUNIX SDT @ Tr Endersys Consultancy Ltd. + + ismail ~ enderunix.org ismail.yenigul ~ endersys.com.tr + + Volunteer, Core Team Member Project Manager + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TCP/IP ve A? g?venli?i kitab?n?n 2. bask?s? ??kt?! http://dukkan.acikakademi.com From ismail at EnderUNIX.org Sun Dec 23 12:47:49 2007 From: ismail at EnderUNIX.org (Ismail YENIGUL) Date: Sun Dec 23 12:48:30 2007 Subject: Turkish character sorting on PostgreSQL In-Reply-To: <9bbcef730712221435o1f1227a1l1ca840e1474aacfb@mail.gmail.com> References: <1605513356.20071219221424@EnderUNIX.org> <879443695.20071222190910@EnderUNIX.org> <9bbcef730712221435o1f1227a1l1ca840e1474aacfb@mail.gmail.com> Message-ID: <1601099540.20071223224012@EnderUNIX.org> Hello, I think, I managed to give full Turkish locale support by modifying /usr/src/share/colldef/la_LN.ISO8859-1.src file. I made some tests, It is working fine. I will submit a new PR. Also please find the attached patch for the people who want to test it. Sunday, December 23, 2007, 12:35:08 AM, you wrote: > On 22/12/2007, Ismail YENIGUL wrote: >> By the way, LC_COLLATE is link to the ../la_LN.US-ASCII/LC_COLLATE >> in /usr/share/locale/tr_TR.ISO8859-9 directory. Does this mean that >> LC_COLLATE is missing for tr_TR.ISO8859-9 ? > Yes. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + http://www.enderunix.org/ismail http://www.endersys.com.tr + + EnderUNIX SDT @ Tr Endersys Consultancy Ltd. + + ismail ~ enderunix.org ismail.yenigul ~ endersys.com.tr + + Volunteer, Core Team Member Project Manager + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ TCP/IP ve A? g?venli?i kitab?n?n 2. bask?s? ??kt?! http://dukkan.acikakademi.com -------------- next part -------------- A non-text attachment was scrubbed... Name: tr_TR.ISO8859-9.diff Type: application/octet-stream Size: 1931 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-database/attachments/20071223/d7638840/tr_TR.ISO8859-9.obj