--- freetds-0.82.orig/PWD +++ freetds-0.82/PWD @@ -0,0 +1,19 @@ +# $Id: PWD.in,v 1.1 2002/09/12 15:24:20 castellano Exp $ +# +# This file was taken from DBD::Sybase :-) It is used by 'make check' to test +# the installation +# +# UID: the username of a user to connect with +# PWD: the password for that user +# SRV: the symbolic server name from the freetds.conf (or interfaces) file. +# Note: if you use a hostname/IP here instead, freetds will attempt to +# connect using the compiletime default port (4000 for TDS 5.0, 1433 for +# 4.2 or 7.0) which is usually not right. +# DB: Database in which to create tables used in the tests. For those new to +# Sybase or MS SQL server, there may be many database per server. tempdb +# is a good default choice if unsure. +# +UID=guest +PWD=sybase +SRV=JDBC +DB=tempdb --- freetds-0.82.orig/config.sub +++ freetds-0.82/config.sub @@ -1,12 +1,10 @@ #! /bin/sh -# -# $NetBSD: config.sub,v 1.7 2004/08/14 19:14:42 schmonz Exp $ -# # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +# Free Software Foundation, Inc. -timestamp='2004-03-12' +timestamp='2008-01-16' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -24,14 +22,15 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. + # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # @@ -73,8 +72,8 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -86,11 +85,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -102,7 +101,7 @@ *local*) # First pass through any local machine types. echo $1 - exit 0;; + exit ;; * ) break ;; @@ -121,8 +120,9 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -148,7 +148,7 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) + -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; @@ -173,6 +173,10 @@ -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -189,6 +193,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -233,14 +241,16 @@ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ + | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ - | m32r | m32rle | m68000 | m68k | m88k | mcore \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -249,6 +259,7 @@ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ @@ -257,20 +268,24 @@ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | mt \ | msp430 \ + | nios | nios2 \ | ns16k | ns32k \ - | openrisc | or32 \ + | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | score \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ - | strongarm \ + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ + | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ - | x86 | xscale | xstormy16 | xtensa \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; @@ -281,6 +296,9 @@ ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; + ms1) + basic_machine=mt-unknown + ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -300,20 +318,20 @@ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bs2000-* \ + | avr-* | avr32-* \ + | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ + | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ - | m32r-* | m32rle-* \ + | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ @@ -322,6 +340,7 @@ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ @@ -329,27 +348,35 @@ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-*) ;; + # Recognize the basic CPU types without company name, with glob match. + xtensa*) + basic_machine=$basic_machine-unknown + ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) @@ -420,6 +447,14 @@ basic_machine=ns32k-sequent os=-dynix ;; + blackfin) + basic_machine=bfin-unknown + os=-linux + ;; + blackfin-*) + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; c90) basic_machine=c90-cray os=-unicos @@ -448,13 +483,20 @@ basic_machine=j90-cray os=-unicos ;; - cr16c) - basic_machine=cr16c-unknown + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16) + basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; @@ -484,6 +526,10 @@ basic_machine=m88k-motorola os=-sysv3 ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -634,6 +680,14 @@ basic_machine=m68k-isi os=-sysv ;; + m68knommu) + basic_machine=m68k-unknown + os=-linux + ;; + m68knommu-*) + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; m88k-omron*) basic_machine=m88k-omron ;; @@ -649,6 +703,10 @@ basic_machine=i386-pc os=-mingw32 ;; + mingw32ce) + basic_machine=arm-unknown + os=-mingw32ce + ;; miniframe) basic_machine=m68000-convergent ;; @@ -662,10 +720,6 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -678,6 +732,9 @@ basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; mvs) basic_machine=i370-ibm os=-mvs @@ -746,10 +803,6 @@ np1) basic_machine=np1-gould ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp - ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -757,9 +810,8 @@ basic_machine=hppa1.1-oki os=-proelf ;; - or32 | or32-*) + openrisc | openrisc-*) basic_machine=or32-unknown - os=-coff ;; os400) basic_machine=powerpc-ibm @@ -781,6 +833,14 @@ basic_machine=i860-intel os=-osf ;; + parisc) + basic_machine=hppa-unknown + os=-linux + ;; + parisc-*) + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` + os=-linux + ;; pbd) basic_machine=sparc-tti ;; @@ -790,6 +850,12 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; @@ -846,6 +912,10 @@ basic_machine=i586-unknown os=-pw32 ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -872,6 +942,10 @@ sb1el) basic_machine=mipsisa64sb1el-unknown ;; + sde) + basic_machine=mipsisa32-sde + os=-elf + ;; sei) basic_machine=mips-sei os=-seiux @@ -883,6 +957,9 @@ basic_machine=sh-hitachi os=-hms ;; + sh5el) + basic_machine=sh5le-unknown + ;; sh64) basic_machine=sh64-unknown ;; @@ -972,6 +1049,10 @@ basic_machine=tic6x-unknown os=-coff ;; + tile*) + basic_machine=tile-unknown + os=-linux-gnu + ;; tx39) basic_machine=mipstx39-unknown ;; @@ -1032,6 +1113,10 @@ basic_machine=hppa1.1-winbond os=-proelf ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; xps | xps100) basic_machine=xps100-honeywell ;; @@ -1062,6 +1147,9 @@ romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1078,16 +1166,10 @@ we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) @@ -1160,20 +1242,23 @@ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1191,7 +1276,7 @@ os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) @@ -1300,6 +1385,9 @@ -kaos*) os=-kaos ;; + -zvmoe) + os=-zvmoe + ;; -none) ;; *) @@ -1322,6 +1410,12 @@ # system, and we'll never get to this point. case $basic_machine in + score-*) + os=-elf + ;; + spu-*) + os=-elf + ;; *-acorn) os=-riscix1.2 ;; @@ -1331,9 +1425,9 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; + c4x-* | tic4x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 @@ -1359,6 +1453,9 @@ m68*-cisco) os=-aout ;; + mep-*) + os=-elf + ;; mips*-cisco) os=-elf ;; @@ -1377,9 +1474,15 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; @@ -1545,7 +1648,7 @@ esac echo $basic_machine$os -exit 0 +exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) --- freetds-0.82.orig/configure +++ freetds-0.82/configure @@ -7533,7 +7533,7 @@ hardcode_shlibpath_var=no ;; - linux*) + linux* | k*bsd*-gnu | gnu*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $CC,$host_cpu in --- freetds-0.82.orig/freetds.conf.pl +++ freetds-0.82/freetds.conf.pl @@ -0,0 +1,92 @@ +#!/usr/bin/perl +# +# FreeTDS - Library of routines accessing Sybase and Microsoft databases +# Copyright (C) 2001 James K. Lowden +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# This program converts entries in an interfaces file to the format +# of freetds.conf. + +if( @ARGV > 0 ) { + $interfaces = $ARGV[0]; + goto OPEN if( -e $interfaces && ! -d $interfaces ); + + # agument was only directory name? + $interfaces = "$interfaces/interfaces"; + goto OPEN if( -e $interfaces ); + + warn "Could not find 'interfaces' file using $ARGV[0].\n"; +} + +# is it in the current directory? +$interfaces = 'interfaces'; +goto OPEN if( -e $interfaces ); + +# is it in the $SYBASE directory? +$interfaces = "$ENV{SYBASE}/interfaces"; +goto OPEN if( -e $interfaces ); + +CROAK: # no input file found . +$searched = qq("$ARGV[0]", ) if $ARGV[0]; +$searched .= qq/\$SYBASE ("$SYBASE") /; +$searched .= ", " if $ARGV[0]; +$searched .= "or " . `pwd`; +die qq(No "interfaces" file found to convert in $searched); + + +OPEN: +open INTERFACES, $interfaces or die qq(Could not open "$interfaces" from `pwd`); +print qq(# The following lines were converted from "$interfaces":\n); + +$fPrintComments = 0; +while() { + # Print comments after finding some kind of data line + # (skip boilerplate explanatory comments in model interfaces file). + if( /^#/ ) { + print if $fPrintComments; + next; + } + + $fPrintComments = 1; # reached first non-commented line + + if( /^(\w+)/ ) { # new symbolic name found + chomp; + $SymbolicName = $1; + $hostname = $port = $tds = ''; + next; + } + + next unless $SymbolicName; + + # ignore "master" record + next if /^\s+master/; + + # if we know the symbolic name and we found a "query" line... + if( s/^\s+query//o ) { # found a live one + chomp; + ($tcp, $tds, $hostname, $port) = split; + $tds =~ s/tds//o; # strip off 'tds' if in form of 'tds4.2' + print qq([$SymbolicName]\n); + print qq(\thost = $hostname\n); + print qq(\tport = $port\n); + print qq(\ttds version = $tds\n) if $tds =~ /\d.*\d/; + print qq(\n); + + $SymbolicName = ''; + $hostname = $port = $tds = ''; + } +} --- freetds-0.82.orig/debian/README.debian +++ freetds-0.82/debian/README.debian @@ -0,0 +1,10 @@ +freetds for Debian +---------------------- + +FreeTDS is a project to document and implement the TDS (Tabular DataStream) +protocol. TDS is used by Sybase and Microsoft for client to database server +communications. The FreeTDS project will implement many call level +interfaces, including DB-Lib, CT-Lib, ODBC, JDBC, and Perl DBI. See +http://www.freetds.org/ for more information. + +Steve Langasek , Tue, 7 Nov 2000 09:15:40 -0600 --- freetds-0.82.orig/debian/TODO +++ freetds-0.82/debian/TODO @@ -0,0 +1 @@ +Package the user manual (freetds-doc?) and tools (freetds-bin?) --- freetds-0.82.orig/debian/changelog +++ freetds-0.82/debian/changelog @@ -0,0 +1,423 @@ +freetds (0.82-4) unstable; urgency=low + + * Fix a typo in the freetds-common description, ugh + * Versioned replaces of libct4 by freetds-common, since the current one + obviously doesn't have overlapping files. + * tdsodbc: check for /var/lib/odbc existence before removing it in the + postinst, since there are cases where it won't exist on upgrade (i.e., + if the driver was never enabled in the first place). Closes: #493303. + + -- Steve Langasek Sat, 02 Aug 2008 11:49:53 -0700 + +freetds (0.82-3) unstable; urgency=low + + * Add the GFDL to debian/copyright, to satisfy ftp team demands. No files + shipped in the binary packages are covered by this license. + * Update the list of authors in debian/copyright, from the current AUTHORS + file. + + -- Steve Langasek Sat, 19 Jul 2008 18:45:43 -0700 + +freetds (0.82-2) unstable; urgency=low + + * Add a provisional Vcs-Bzr tag. + * Upload to unstable. + + -- Steve Langasek Tue, 01 Jul 2008 16:16:38 -0700 + +freetds (0.82-1) experimental; urgency=low + + * New upstream release (closes: #392459). + - soname bump for libct3 -> libct4. + - fix support for quoted identifiers. Closes: #487516. + - fix for buffer overflow issues with datetime fields and long format + strings. Closes: #400269, #353735. + - fix for dbresults() return value following a NO_MORE_RESULTS + return. Closes: #486249. + * Acknowledge NMUs. + * Drop debian/{libsybdb5,libct3}.manifest, which are now superseded by the + new dpkg-gensymbols setup + * Add locales.conf to the libct4 examples directory, to show proper + configuration of server charsets when this is needed. Closes: #390131. + * Don't install ODBC-related files in freetds-dev. Closes: #360345, + LP: #68239. + * Simplify the debconf handling for tdsodbc: one removal in the prerm, + one addition in the postinst, and we should always get a correct + reference count for the driver. + * Add a new package freetds-common to contain the config files, so that + we're future-proofed against further soname changes in libct. + - install the freetds.conf.5 manpage here now that there's a suitable + place for it + - now that our -common package is arch: all, don't symlink doc + directories; necessary in order to preserve binNMU changelogs + - create the /etc/freetds directory in our postinst if it's missing, + to make the script more robust against previous versions of libct + being purged. Closes: #317677. + * Miscellaneous clean-up of debian/rules: + - drop commented-out lines + - `pwd` == ick + - use DESTDIR when installing + - clean up the separation between install and binary targets + - don't override CFLAGS when building, unixodbc-dev now correctly + takes care of this for us + - drop obsolete get-orig-source target, which only knew about an old + source version anyway; debian/watch works better here. + - don't ignore failures on make distclean; instead, only invoke it + when a Makefile is present. + * Bump Standards-Version to 3.8.0 (no changes required). + * Pass -V to dh_makeshlibs, so that any packages that build against + libsybdb5 with an old dpkg-dev don't end up with broken dependencies. + * Bump debhelper compat level from 3 to 6 + + -- Steve Langasek Sun, 22 Jun 2008 23:27:54 -0700 + +freetds (0.63-3.4) unstable; urgency=low + + * Non-maintainer upload. + * "I brake it, I fix it" + * Don't use -v flag for dpkg-gensymbols, closes: #479526 + * Add finnish debconf translation, closes: #476723 + + -- Riku Voipio Mon, 05 May 2008 17:44:35 +0300 + +freetds (0.63-3.3) unstable; urgency=low + + * Non-maintainer upload. + * Migrate to dpkg-shlibdeps symbols file, + closes: #441736, #470807 + * Fix build-dependency on virtual package: closes: #433557 + * Patch configure to allow builds on kfreebsd/hurd, closes: #366440 + * Make package binNMUable + * Add homepage field + + -- Riku Voipio Sat, 05 Apr 2008 15:11:17 +0300 + +freetds (0.63-3.2) unstable; urgency=low + + * Non-maintainer upload to fix pending l10n issues. + * Debconf translations: + - Galician. Closes: #412654 + - Portuguese. Closes: #409959 + + -- Christian Perrier Sat, 10 Mar 2007 12:29:53 +0100 + +freetds (0.63-3.1) unstable; urgency=low + + * Non-maintainer upload to fix pending l10n issues. + * Debconf translations: + - Dutch. Closes: #402202 + - Italian. Closes: #368336 + - German. Closes: #406551 + + -- Christian Perrier Tue, 6 Feb 2007 08:55:09 +0100 + +freetds (0.63-3) unstable; urgency=low + + * Added Swedish translation, thanks to Daniel Nylander + (closes: #331477). + * Depend on ${misc:Depends} instead of on debconf directly, to allow + installations of other implementations of the debconf-2.0 protocol + (closes: #331826). + * Rework locale patch to allow overriding locale environment via + /etc/freetds/locales.conf; support "client charset" options on a + per-locale basis, not just on a per-server basis; and don't pull + date formats from nl_langinfo(), because the locale defaults are + apparently insane. Closes: #324869. + * Update the prototype of SQLParamOptions so we build correctly + against UnixODBC on 64-bit platforms + + -- Steve Langasek Wed, 24 May 2006 19:17:00 -0700 + +freetds (0.63-2) unstable; urgency=low + + * Fix an issue with the SQLParamOptions implementation not being + 64-bit-clean wrt UnixODBC's implementation; this will need to be + chased up with iODBC as well as with freetds upstream, to get + everyone on the same page. + * Remove a spurious redefine of SQLULEN in src/odbc/odbc.c, as + tdsodbc.h already includes an appropriate check for SQLULEN + + -- Steve Langasek Tue, 5 Jul 2005 02:43:00 -0700 + +freetds (0.63-1) unstable; urgency=low + + * New upstream release (closes: #230024, #236564). + - includes support for UTF-8 locales (closes: #316236). + - new sonames libct3, libsybdb5 + - break tdsodbc into its own package, to avoid future + conflicts/replaces nonsense + * Acknowledge NMUs; thanks to Christian Perrier and Frank Lichtenheld. + * Rebuild against unixodbc 2.2.11. + * Drop ancient migration code for /etc/freetds/interfaces, which was + pre-woody and never in a stable release + * Move freetds.conf.pl to doc/examples, since it's no longer needed + for upgrades + * Fix dependencies on libct3 to be strictly versioned, to avoid + invalid /usr/share/doc symlinks + * Add debian/update-manifest.sh and debian/dh_makeshlibs, to + future-proof against incorrect shlibs + * Added Vietnamese translation, thanks to Clytie Siddal + (closes: #311749). + * Added Japanese translation, thanks to Hideki Yamane + (closes: #310234). + + -- Steve Langasek Sun, 5 Jun 2005 19:34:33 -0700 + +freetds (0.61-6.2) unstable; urgency=low + + * Non-maintainer upload with maintainer's agreement in order to complete + the switch to po-debconf + * Switch to po-debconf for debconf tempaltes translation handling + Closes: #234606 + * New translations: + - Czech, thanks to Miroslav Kure + - Brazilian Portuguese, thanks to Felipe Augusto van de Wiel + Closes: #301615 + - French, thanks to Jean-Luc Coulon + + -- Christian Perrier Mon, 4 Apr 2005 19:48:55 +0200 + +freetds (0.61-6.1) unstable; urgency=high + + * Non-maintainer upload. + * Add AM_MAINTAINER_MODE and rerun autogen.sh. This hopefully + fixes the FTBFS (closes: #276851) + * Sync debhelper build-depends with DH_COMPAT level (3) + + -- Frank Lichtenheld Fri, 29 Oct 2004 22:33:07 +0200 + +freetds (0.61-6) unstable; urgency=medium + + * Add myself to Uploaders, closing Steve's RFH (closes: #263165) + * Work around buggy handling of results from stored procedures in all + versions of libct below 0.62.5 (clsoes: #260261) + * freetds-dev now conflicts with crystalspace-dev, as we have a header + (/usr/include/cstypes.h) by the same name (closes: #259105) + * Update debian/watch to actually work properly with upstream. + + -- Adam Conrad Thu, 2 Sep 2004 23:30:26 -0600 + +freetds (0.61-5) unstable; urgency=low + + * Since we depend on the odbcinst package, always ask about ODBC + support at configure time. Also, allow dpkg-reconfigure to change + the ODBC handling preference. (Closes: #198523) + + -- Steve Langasek Sun, 6 Jul 2003 01:19:49 -0500 + +freetds (0.61-4) unstable; urgency=low + + * Fix an out-of-range comparison error on unsigned char platforms + (closes: #161897). + + -- Steve Langasek Sat, 19 Apr 2003 22:51:21 -0500 + +freetds (0.61-3) unstable; urgency=low + + * After rerunning autotools, the name of the real library changed on + us again; copy the /real/ file into /usr/lib/odbc, not just a + symlink (closes: #185172). + + -- Steve Langasek Fri, 18 Apr 2003 14:02:05 -0500 + +freetds (0.61-2) unstable; urgency=low + + * Update the package to comply with v. 3.5.8 of policy. + * Rerun the autotools for mips/mipsel, because upstream is still using + libtool 1.4a (closes: #183792). + + -- Steve Langasek Sun, 2 Mar 2003 19:36:49 -0600 + +freetds (0.61-1) unstable; urgency=low + + * new upstream release. + * libct0 is now libct1. + * libsybdb2 is now libsybdb3. + * Work on the idempotency of the maintainer scripts, so that 1) we + never remove the driver on a running system, 2) our reference count + remains net-constant, and 3) we are calling odbcinst so that we can + provide tweaked driver settings in the package when needed. + + -- Steve Langasek Sun, 12 Jan 2003 13:40:28 -0600 + +freetds (0.60.1-3) unstable; urgency=low + + * incorporate changes from CVS to eliminate the dependency on + OpenSSL -- required for licensing reasons. + * use AM_MAINTAINER_MODE to make autobuilders happy (closes: #162924). + + -- Steve Langasek Sun, 29 Sep 2002 15:58:12 -0500 + +freetds (0.60.1-2) unstable; urgency=low + + * rerun libtoolize --force --copy; upstream built with an older + version, which doesn't work too well on some of our archs. + + -- Steve Langasek Sat, 21 Sep 2002 12:14:21 -0500 + +freetds (0.60.1-1) unstable; urgency=low + + * New upstream release + + -- Steve Langasek Fri, 20 Sep 2002 12:14:19 -0500 + +freetds (0.53-7) unstable; urgency=low + + * It's the bug that wouldn't die. Try one more time to get the postrm + right. (Closes: #139960) + + -- Steve Langasek Wed, 17 Apr 2002 10:21:13 -0500 + +freetds (0.53-6) unstable; urgency=low + + * Redirect output in the postrm, since debhelper is smarter than I am + (really closes: #139960). + + -- Steve Langasek Mon, 1 Apr 2002 21:53:33 -0600 + +freetds (0.53-5) unstable; urgency=low + + * Fix for possible debconf hang in postrm, due to spurious messages on + stderr (closes: #139960). + * Better handling for the case where we're reading from a closed + socket (closes: #138166). + * Quote the ldconfig call in our postinst, to work around the broken + shards of rectal thermometer that is the lintian check. + + -- Steve Langasek Wed, 27 Mar 2002 12:16:50 -0600 + +freetds (0.53-4) unstable; urgency=low + + * Merge in Russian debconf templates, thanks to Ilgiz Kalmetev + . (Closes: #137651) + + -- Steve Langasek Sun, 10 Mar 2002 12:38:09 -0600 + +freetds (0.53-3) unstable; urgency=low + + * patch from upstream CVS to address segfaults w/ null server names + (closes: #132775) + + -- Steve Langasek Tue, 12 Feb 2002 17:36:38 -0600 + +freetds (0.53-2) unstable; urgency=low + + * Fix build-dependencies to get the proper version of unixodbc-dev. + * Fix the numerous build-time warnings that mean real problems on + non-i386 archen (closes: #129608). Remaining warnings are either + ones that should be left in place as reminders to upstream, or in + the unused tdssrv library that's included only as a reference for + future application developers. + + -- Steve Langasek Wed, 16 Jan 2002 22:57:37 -0600 + +freetds (0.53-1) unstable; urgency=low + + * New upstream release + * Move the ODBC driver into the /usr/lib/odbc subdirectory. + + -- Steve Langasek Mon, 14 Jan 2002 21:38:34 -0600 + +freetds (0.52+0.53rc2-1) unstable; urgency=low + + * New upstream release + * Build against unixodbc-dev instead of libiodbc2-dev, since unixodbc + is more current (ODBC 3.0) + * Include our own copy of the Sybase `interfaces' file; upstream no + longer ships it, but we keep a copy around for use in maintainer + scripts. + + -- Steve Langasek Sun, 16 Dec 2001 22:55:54 -0600 + +freetds (0.52+0.53pre2-2) unstable; urgency=low + + * Added missing calls to ldconfig, since we're not calling + dh_makeshlibs now. + + -- Steve Langasek Wed, 28 Nov 2001 22:19:54 -0600 + +freetds (0.52+0.53pre2-1) unstable; urgency=low + + * New upstream (pre)release. Fixes a number of serious bugs that + were present in the last release. + (closes: #117725) + + -- Steve Langasek Sat, 24 Nov 2001 13:43:19 -0600 + +freetds (0.52-3) unstable; urgency=low + + * Separate out templates.es into a separate file, for greater flexibility. + * Added German language localization for debconf, thanks to Michael + Bramer . (closes: #106517) + * Manually specify --build and --host options to configure, + eliminating the need for updated config.guess + + -- Steve Langasek Fri, 27 Jul 2001 09:11:33 -0500 + +freetds (0.52-2) unstable; urgency=low + + * Fixed Spanish-localized debconf template; previous version contained + an incomplete translation + * Add support for automatically registering the ODBC driver at + install-time (if /usr/bin/odbcinst is present) + * Add Build-Depend on libglib-dev for the odbc driver + (closes: #106437, #106442) + + -- Steve Langasek Tue, 24 Jul 2001 09:17:14 -0500 + +freetds (0.52-1) unstable; urgency=low + + * New upstream release (closes: #101135) + * new ODBC driver included in package + + -- Steve Langasek Sat, 21 Jul 2001 12:39:47 -0500 + +freetds (0.51-4) unstable; urgency=low + + * need up-to-date config.sub for the arm autobuilder. + * fixed the Section of the source package. + + -- Steve Langasek Sun, 4 Feb 2001 16:03:36 -0600 + +freetds (0.51-3) unstable; urgency=low + + * preliminary fixes for 64-bit architectures + * fixed shlibs file. Now auto-generated w/ debhelper. + + -- Steve Langasek Mon, 29 Jan 2001 22:39:14 -0600 + +freetds (0.51-2) unstable; urgency=low + + * Use dh_links to create doc symlinks + + -- Steve Langasek Mon, 15 Jan 2001 12:16:11 -0600 + +freetds (0.51-1) unstable; urgency=low + + * New upstream release + * /usr/lib/freetds directory no longer needed. Removed from package. + + -- Steve Langasek Sun, 26 Nov 2000 23:58:07 -0600 + +freetds (0.50-3) unstable; urgency=low + + * updated conf file handling with help from lintian + + -- Steve Langasek Wed, 8 Nov 2000 10:49:22 -0600 + +freetds (0.50-2) unstable; urgency=low + + * Fixed /usr/lib/freetds/interfaces to be a conffile + * added /usr/lib/freetds/include symlink, fixed to work as expected + + -- Steve Langasek Tue, 7 Nov 2000 22:12:24 -0600 + +freetds (0.50-1) unstable; urgency=low + + * Initial release. + + -- Steve Langasek Tue, 7 Nov 2000 09:15:40 -0600 + +Local variables: +mode: debian-changelog +End: --- freetds-0.82.orig/debian/compat +++ freetds-0.82/debian/compat @@ -0,0 +1 @@ +6 --- freetds-0.82.orig/debian/control +++ freetds-0.82/debian/control @@ -0,0 +1,67 @@ +Source: freetds +Section: libs +Priority: optional +Maintainer: Steve Langasek +Uploaders: Adam Conrad +Standards-Version: 3.8.0 +Homepage: http://www.freetds.org/ +Vcs-Bzr: http://minbar.dodds.net/~vorlon/freetds.debian +Build-Depends: debhelper (>= 4.1.16), autotools-dev, unixodbc-dev (>= 2.2.11-10), libglib2.0-dev | libglib-dev + +Package: freetds-common +Architecture: all +Replaces: libct3, libct4 (<< 0.82-1) +Description: configuration files for FreeTDS SQL client libraries + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package manages the configuration files that are common to all of + the TDS client library implementations (CT-Lib, DB-Lib, and ODBC), + stored in /etc/freetds/. + +Package: libct4 +Architecture: any +Depends: ${shlibs:Depends}, freetds-common +Description: libraries for connecting to MS SQL and Sybase SQL servers + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the shared libraries for the Sybase CT-Lib API. + You will need this if you plan to connect to MS SQL or Sybase servers, or use + the PHP sybase or Perl DBD::Sybase extensions. + +Package: tdsodbc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, freetds-common +Recommends: libiodbc2 | unixodbc +Conflicts: freetds0, libct0, unixodbc (<< 2.1.1-2) +Replaces: freetds0, libct0, libct1 +Description: ODBC driver for connecting to MS SQL and Sybase SQL servers + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the ODBC driver for FreeTDS, for use with + UnixODBC or iODBC. + +Package: libsybdb5 +Architecture: any +Depends: ${shlibs:Depends}, freetds-common +Description: libraries for connecting to MS SQL and Sybase SQL servers + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the shared libraries for the Sybase DB-Lib API. + +Package: freetds-dev +Section: devel +Architecture: any +Depends: libct4 (= ${binary:Version}), libsybdb5 (= ${binary:Version}) +Conflicts: crystalspace-dev +Description: MS SQL and Sybase client library (static libs and headers) + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the static libraries and header files for TDS, which + you will need to develop applications that connect to MS SQL servers. You + will also need this package if you are installing the Perl DBD::Sybase + module on your system using CPAN. --- freetds-0.82.orig/debian/copyright +++ freetds-0.82/debian/copyright @@ -0,0 +1,54 @@ +This package was debianized by Steve Langasek vorlon@dodds.net on +Tue, 7 Nov 2000 09:15:40 -0600. + +It was downloaded from ftp://ftp.metalab.unc.edu/pub/Linux/ALPHA/freetds/ + +Authors: + + Brian Bruns + James K. Lowden + Koscheev Andrey + Craig A. Berry + James Cameron + Peter Deacon + John F. Dumas + David Fraser + Scott Gray + Alex Hornby + Mihai Ibanescu + Gregg Jensen + Viktar Klimkovitch + Bob Kline + Lothar Krauss + Steve Langasek + Mark J. Lilback + Kevin Lyons + Steve Murphree + Dennis Nicklaus + Arno Pedusaar + Brandon M. Reynolds + Thomas Rogers + Mark Schaal + Ken Seymour + Craig Spannring + Martin Spott + Sam Tetherow + Bill Thompson + Patrick van Kleef + Geoff Winkless + Nicholas S. Castellano + +Copyright: + +FreeTDS is copyright (C) 1998-2008 Brian Bruns et al. and is licensed +under the GNU LGPL, version 2 or later. + +The FreeTDS User Guide is distributed under the terms of the GNU Free +Documentation License, Version 1.1 or later, with no Invariant Sections, +Front-Cover Texts, or Back-Cover Texts. + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in /usr/share/common-licenses/LGPL'. The +complete text of the GNU Free Documentation License can be found in +/usr/share/common-licenses/GFDL. + --- freetds-0.82.orig/debian/dirs +++ freetds-0.82/debian/dirs @@ -0,0 +1,4 @@ +etc/freetds +usr/lib +usr/lib/odbc +usr/include --- freetds-0.82.orig/debian/freetds-common.dirs +++ freetds-0.82/debian/freetds-common.dirs @@ -0,0 +1 @@ +/etc/freetds --- freetds-0.82.orig/debian/freetds-common.examples +++ freetds-0.82/debian/freetds-common.examples @@ -0,0 +1,2 @@ +freetds.conf.pl +locales.conf --- freetds-0.82.orig/debian/freetds-common.files +++ freetds-0.82/debian/freetds-common.files @@ -0,0 +1 @@ +/usr/share/freetds/freetds.conf --- freetds-0.82.orig/debian/freetds-common.links +++ freetds-0.82/debian/freetds-common.links @@ -0,0 +1,2 @@ +usr/share/freetds/freetds.conf usr/share/doc/freetds-common/examples/freetds.conf +usr/share/tdsodbc/odbcinst.ini usr/share/doc/freetds-common/examples/odbcinst.ini --- freetds-0.82.orig/debian/freetds-common.manpages +++ freetds-0.82/debian/freetds-common.manpages @@ -0,0 +1 @@ +debian/tmp/usr/man/man5/freetds.conf.5 --- freetds-0.82.orig/debian/freetds-common.postinst +++ freetds-0.82/debian/freetds-common.postinst @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +# If /etc/freetds has been removed, this is a special case, probably +# caused by purging a previous libct version. Unconditionally restore +# freetds.conf in this case. +if [ ! -d /etc/freetds ]; then + mkdir /etc/freetds + cp -a /usr/share/freetds/freetds.conf /etc/freetds/ +fi + +# Install a reasonable default on initial config + +if [ -z "$2" ] && [ ! -e /etc/freetds/freetds.conf ]; then + cp -a /usr/share/freetds/freetds.conf /etc/freetds/ +fi + +#DEBHELPER# --- freetds-0.82.orig/debian/freetds-common.postrm +++ freetds-0.82/debian/freetds-common.postrm @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +if [ "$1" = purge ]; then + rm -f /etc/freetds/freetds.conf + rmdir /etc/freetds || true +fi + +#DEBHELPER# --- freetds-0.82.orig/debian/freetds-dev.files +++ freetds-0.82/debian/freetds-dev.files @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*.a +usr/lib/*.la +usr/lib/*.so --- freetds-0.82.orig/debian/libct4.files +++ freetds-0.82/debian/libct4.files @@ -0,0 +1 @@ +usr/lib/libct.so.4* --- freetds-0.82.orig/debian/libct4.symbols +++ freetds-0.82/debian/libct4.symbols @@ -0,0 +1,74 @@ +libct.so.4 libct4 #MINVER# + blk_alloc@Base 0.64 + blk_bind@Base 0.64 + blk_colval@Base 0.64 + blk_default@Base 0.64 + blk_describe@Base 0.64 + blk_done@Base 0.64 + blk_drop@Base 0.64 + blk_getrow@Base 0.64 + blk_gettext@Base 0.64 + blk_init@Base 0.64 + blk_props@Base 0.64 + blk_rowalloc@Base 0.64 + blk_rowdrop@Base 0.64 + blk_rowxfer@Base 0.64 + blk_rowxfer_mult@Base 0.64 + blk_sendrow@Base 0.64 + blk_sendtext@Base 0.64 + blk_srvinit@Base 0.64 + blk_textxfer@Base 0.64 + cs_calc@Base 0.64 + cs_cmp@Base 0.64 + cs_config@Base 0.64 + cs_conv_mult@Base 0.64 + cs_convert@Base 0.64 + cs_ctx_alloc@Base 0.64 + cs_ctx_drop@Base 0.64 + cs_ctx_global@Base 0.64 + cs_diag@Base 0.64 + cs_dt_crack@Base 0.64 + cs_dt_info@Base 0.64 + cs_loc_alloc@Base 0.64 + cs_loc_drop@Base 0.64 + cs_locale@Base 0.64 + cs_manage_convert@Base 0.64 + cs_objects@Base 0.64 + cs_set_convert@Base 0.64 + cs_setnull@Base 0.64 + cs_strbuild@Base 0.64 + cs_strcmp@Base 0.64 + cs_time@Base 0.64 + cs_will_convert@Base 0.64 + ct_bind@Base 0.64 + ct_callback@Base 0.64 + ct_cancel@Base 0.64 + ct_capability@Base 0.64 + ct_close@Base 0.64 + ct_cmd_alloc@Base 0.64 + ct_cmd_drop@Base 0.64 + ct_cmd_props@Base 0.64 + ct_command@Base 0.64 + ct_compute_info@Base 0.64 + ct_con_alloc@Base 0.64 + ct_con_drop@Base 0.64 + ct_con_props@Base 0.64 + ct_config@Base 0.64 + ct_connect@Base 0.64 + ct_cursor@Base 0.64 + ct_data_info@Base 0.64 + ct_describe@Base 0.64 + ct_diag@Base 0.64 + ct_dynamic@Base 0.64 + ct_exit@Base 0.64 + ct_fetch@Base 0.64 + ct_get_data@Base 0.64 + ct_init@Base 0.64 + ct_options@Base 0.64 + ct_param@Base 0.64 + ct_poll@Base 0.64 + ct_res_info@Base 0.64 + ct_results@Base 0.64 + ct_send@Base 0.64 + ct_send_data@Base 0.64 + ct_setparam@Base 0.64 --- freetds-0.82.orig/debian/libsybdb5.dirs +++ freetds-0.82/debian/libsybdb5.dirs @@ -0,0 +1,2 @@ +/usr/lib +/usr/share/doc --- freetds-0.82.orig/debian/libsybdb5.files +++ freetds-0.82/debian/libsybdb5.files @@ -0,0 +1 @@ +usr/lib/libsybdb.so.5* --- freetds-0.82.orig/debian/libsybdb5.symbols +++ freetds-0.82/debian/libsybdb5.symbols @@ -0,0 +1,185 @@ +libsybdb.so.5 libsybdb5 #MINVER# + abort_xact@Base 0.63 + bcp_batch@Base 0.63 + bcp_bind@Base 0.63 + bcp_colfmt@Base 0.63 + bcp_colfmt_ps@Base 0.63 + bcp_collen@Base 0.63 + bcp_colptr@Base 0.63 + bcp_columns@Base 0.63 + bcp_control@Base 0.63 + bcp_done@Base 0.63 + bcp_exec@Base 0.63 + bcp_getbatchsize@Base 0.82 + bcp_getl@Base 0.63 + bcp_init@Base 0.63 + bcp_moretext@Base 0.63 + bcp_options@Base 0.63 + bcp_readfmt@Base 0.63 + bcp_sendrow@Base 0.63 + bcp_writefmt@Base 0.63 + build_xact_string@Base 0.63 + close_commit@Base 0.63 + commit_xact@Base 0.63 + dbadata@Base 0.63 + dbadlen@Base 0.63 + dbaltbind@Base 0.63 + dbaltcolid@Base 0.63 + dbaltlen@Base 0.63 + dbaltop@Base 0.63 + dbalttype@Base 0.63 + dbaltutype@Base 0.63 + dbanullbind@Base 0.63 + dbbind@Base 0.63 + dbbylist@Base 0.63 + dbcancel@Base 0.63 + dbcanquery@Base 0.63 + dbchange@Base 0.63 + dbclose@Base 0.63 + dbclrbuf@Base 0.63 + dbclropt@Base 0.63 + dbcmd@Base 0.63 + dbcmdrow@Base 0.63 + dbcolinfo@Base 0.63 + dbcollen@Base 0.63 + dbcolname@Base 0.63 + dbcolsource@Base 0.63 + dbcoltype@Base 0.63 + dbcoltypeinfo@Base 0.63 + dbcolutype@Base 0.63 + dbconvert@Base 0.63 + dbconvert_ps@Base 0.63 + dbcount@Base 0.63 + dbcurcmd@Base 0.63 + dbcurrow@Base 0.63 + dbdata@Base 0.63 + dbdatecmp@Base 0.63 + dbdatecrack@Base 0.63 + dbdatlen@Base 0.63 + dbdead@Base 0.63 + dberrhandle@Base 0.63 + dbexit@Base 0.63 + dbfcmd@Base 0.63 + dbfirstrow@Base 0.63 + dbfreebuf@Base 0.63 + dbgetchar@Base 0.63 + dbgetmaxprocs@Base 0.63 + dbgetpacket@Base 0.63 + dbgetrow@Base 0.63 + dbgettime@Base 0.82 + dbgetuserdata@Base 0.63 + dbhasretstat@Base 0.63 + dbinit@Base 0.63 + dbiordesc@Base 0.63 + dbiowdesc@Base 0.63 + dbisavail@Base 0.63 + dbisopt@Base 0.63 + dblastrow@Base 0.63 + dblogin@Base 0.63 + dbloginfree@Base 0.63 + dbmny4add@Base 0.63 + dbmny4cmp@Base 0.63 + dbmny4copy@Base 0.63 + dbmny4divide@Base 0.63 + dbmny4minus@Base 0.63 + dbmny4mul@Base 0.63 + dbmny4sub@Base 0.63 + dbmny4zero@Base 0.63 + dbmnyadd@Base 0.63 + dbmnycmp@Base 0.63 + dbmnycopy@Base 0.63 + dbmnydec@Base 0.63 + dbmnydivide@Base 0.63 + dbmnydown@Base 0.63 + dbmnyinc@Base 0.63 + dbmnyinit@Base 0.63 + dbmnymaxneg@Base 0.63 + dbmnymaxpos@Base 0.63 + dbmnyminus@Base 0.63 + dbmnymul@Base 0.63 + dbmnyndigit@Base 0.63 + dbmnyscale@Base 0.63 + dbmnysub@Base 0.63 + dbmnyzero@Base 0.63 + dbmonthname@Base 0.63 + dbmorecmds@Base 0.63 + dbmoretext@Base 0.63 + dbmsghandle@Base 0.63 + dbname@Base 0.63 + dbnextrow@Base 0.63 + dbnullbind@Base 0.63 + dbnumalts@Base 0.63 + dbnumcols@Base 0.63 + dbnumcompute@Base 0.63 + dbnumrets@Base 0.63 + dbopen@Base 0.63 + dbpoll@Base 0.63 + dbprhead@Base 0.63 + dbprrow@Base 0.63 + dbprtype@Base 0.63 + dbreadtext@Base 0.63 + dbrecftos@Base 0.63 + dbregexec@Base 0.63 + dbreginit@Base 0.63 + dbreglist@Base 0.63 + dbregparam@Base 0.63 + dbresults@Base 0.63 + dbretdata@Base 0.63 + dbretlen@Base 0.63 + dbretname@Base 0.63 + dbretstatus@Base 0.63 + dbrettype@Base 0.63 + dbrows@Base 0.63 + dbrowtype@Base 0.63 + dbrpcinit@Base 0.63 + dbrpcparam@Base 0.63 + dbrpcsend@Base 0.63 + dbrpwclr@Base 0.63 + dbrpwset@Base 0.63 + dbsafestr@Base 0.63 + dbservcharset@Base 0.63 + dbsetavail@Base 0.63 + dbsetdefcharset@Base 0.63 + dbsetdeflang@Base 0.63 + dbsetifile@Base 0.63 + dbsetinterrupt@Base 0.63 + dbsetlbool@Base 0.63 + dbsetllong@Base 0.63 + dbsetlname@Base 0.63 + dbsetlogintime@Base 0.63 + dbsetlshort@Base 0.63 + dbsetlversion@Base 0.63 + dbsetmaxprocs@Base 0.63 + dbsetnull@Base 0.82 + dbsetopt@Base 0.63 + dbsetrow@Base 0.82 + dbsettime@Base 0.63 + dbsetuserdata@Base 0.63 + dbsetversion@Base 0.63 + dbspid@Base 0.63 + dbspr1row@Base 0.63 + dbspr1rowlen@Base 0.63 + dbsprhead@Base 0.63 + dbsprline@Base 0.63 + dbsqlexec@Base 0.63 + dbsqlok@Base 0.63 + dbsqlsend@Base 0.63 + dbstrbuild@Base 0.63 + dbstrcpy@Base 0.63 + dbstrlen@Base 0.63 + dbtablecolinfo@Base 0.82 + dbtds@Base 0.63 + dbtxptr@Base 0.63 + dbtxtimestamp@Base 0.63 + dbuse@Base 0.63 + dbvarylen@Base 0.63 + dbversion@Base 0.63 + dbwillconvert@Base 0.63 + dbwritetext@Base 0.63 + open_commit@Base 0.63 + remove_xact@Base 0.63 + scan_xact@Base 0.63 + start_xact@Base 0.63 + stat_xact@Base 0.63 + tdsdbopen@Base 0.63 + tdsdump_open@Base 0.63 --- freetds-0.82.orig/debian/odbcinst.ini +++ freetds-0.82/debian/odbcinst.ini @@ -0,0 +1,6 @@ +[FreeTDS] +Description = TDS driver (Sybase/MS SQL) +Driver = /usr/lib/odbc/libtdsodbc.so +Setup = /usr/lib/odbc/libtdsS.so +CPTimeout = +CPReuse = --- freetds-0.82.orig/debian/rules +++ freetds-0.82/debian/rules @@ -0,0 +1,121 @@ +#!/usr/bin/make -f +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +#export DH_VERBOSE=1 + +CFLAGS = -g -Wall +INSTALL = install + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL += -s +endif + +# Authoritative build/host types for the Debian archen. +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +# The autotools target adds a forced build-time dependency on +# autotools-dev (for /usr/share/misc/config.*) +autotools: + OLDDATESUB=`./config.sub -t | tr -d - `;\ + NEWDATESUB=`/usr/share/misc/config.sub -t | tr -d - `;\ + if [ "$$OLDDATESUB" -lt "$$NEWDATESUB" ]; then \ + if [ ! -e config.sub.bak ]; then\ + cp -f config.sub config.sub.bak;\ + fi;\ + if [ -e config.sub.bak ]; then\ + cp -f /usr/share/misc/config.sub config.sub;\ + fi;\ + fi + +configure-stamp: + dh_testdir + CPPFLAGS=-D_REENTRANT \ + CFLAGS="${CFLAGS}" \ + ./configure $(confflags) \ + --with-gnu-ld --with-tdsver=4.2 --prefix=/usr \ + --with-unixodbc=/usr --sysconfdir=/etc/freetds \ + --enable-sybase-compat + touch configure-stamp + +build: autotools build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + -rm -f build-stamp configure-stamp + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + mkdir -p $(CURDIR)/debian/tmp/usr/share/freetds + mv $(CURDIR)/debian/tmp/etc/freetds/freetds.conf \ + $(CURDIR)/debian/tmp/usr/share/freetds/ + mkdir -p $(CURDIR)/debian/tmp/usr/lib/odbc + mv $(CURDIR)/debian/tmp/usr/lib/libtdsodbc.so.0.0.0 \ + $(CURDIR)/debian/tmp/usr/lib/odbc/libtdsodbc.so + rm -f $(CURDIR)/debian/tmp/usr/lib/libtdsodbc* + mkdir -p $(CURDIR)/debian/tmp/usr/share/tdsodbc + install -m644 debian/odbcinst.ini $(CURDIR)/debian/tmp/usr/share/tdsodbc/ + dh_movefiles + +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installdirs -i + dh_installdocs -i NEWS README TODO + dh_installexamples -i + dh_installchangelogs -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installdirs -a + dh_installdocs -a + dh_installexamples -a + dh_installchangelogs -a ChangeLog + dh_installman -a + dh_installdebconf -a + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a -Xtdsodbc -V + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +.PHONY: build binary binary-arch binary-indep clean install autotools --- freetds-0.82.orig/debian/tdsodbc.config +++ freetds-0.82/debian/tdsodbc.config @@ -0,0 +1,15 @@ +#!/bin/sh + +action=$1 +version=$2 + +# Source debconf library. +. /usr/share/debconf/confmodule +db_version 2.0 + +db_title "ODBC Setup" + +db_input medium freetds/addtoodbc || true +db_go + +exit 0 --- freetds-0.82.orig/debian/tdsodbc.dirs +++ freetds-0.82/debian/tdsodbc.dirs @@ -0,0 +1 @@ +/usr/share/tdsodbc --- freetds-0.82.orig/debian/tdsodbc.files +++ freetds-0.82/debian/tdsodbc.files @@ -0,0 +1,2 @@ +/usr/lib/odbc/* +/usr/share/tdsodbc/odbcinst.ini --- freetds-0.82.orig/debian/tdsodbc.postinst +++ freetds-0.82/debian/tdsodbc.postinst @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_version 2.0 + +# Always add in the postinst, always delete in the prerm -- this way, +# we'll always have a good reference count in odbcinst.ini. +db_get freetds/addtoodbc || true +if [ "$RET" = "true" ]; then + odbcinst -i -d -f /usr/share/tdsodbc/odbcinst.ini 1>&2 +fi + +if dpkg --compare-versions "$2" lt-nl 0.82-1; then + # on upgrade from older versions, this file will be left around, + # preventing removal of the directory; do a one-time cleanup. + rm -f /var/lib/odbc/freetds.removed + [ ! -d /var/lib/odbc ] || rmdir --ignore-fail-on-non-empty /var/lib/odbc +fi + +#DEBHELPER# --- freetds-0.82.orig/debian/tdsodbc.prerm +++ freetds-0.82/debian/tdsodbc.prerm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule +db_version 2.0 + +db_get freetds/addtoodbc || true +if [ "$RET" = "true" ]; then + odbcinst -u -d -n FreeTDS +fi + +#DEBHELPER# --- freetds-0.82.orig/debian/tdsodbc.templates +++ freetds-0.82/debian/tdsodbc.templates @@ -0,0 +1,11 @@ +Template: freetds/addtoodbc +Type: boolean +Default: false +_Description: Do you want FreeTDS to be registered as an ODBC driver? + You appear to have an ODBC manager (unixodbc or iODBC) installed on your + system. FreeTDS now provides an Open Database Connectivity driver that + can be registered with the manager using the /usr/bin/odbcinst utility. + . + If you wish, FreeTDS will be automatically added as an ODBC driver now and + will be automatically deleted from the list when you remove the freetds + package. --- freetds-0.82.orig/debian/watch +++ freetds-0.82/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/ freetds-([0-9].*)\.tar\.gz --- freetds-0.82.orig/debian/po/POTFILES.in +++ freetds-0.82/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] tdsodbc.templates --- freetds-0.82.orig/debian/po/cs.po +++ freetds-0.82/debian/po/cs.po @@ -0,0 +1,53 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-03-27 10:51+0200\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Chcete registrovat FreeTDS jako ODBC ovlada?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Zd se, e mte v systmu nainstalovanho sprvce ODBC (unixodbc nebo " +"iODBC). FreeTDS nyn poskytuje ovlada Open DataBase Connectivity, kter " +"me bt zaregistrovn u sprvce ODBC nstrojem /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Pokud si pejete, FreeTDS bude nyn automaticky pidn jako ODBC ovlada a " +"pi odinstalaci balku freetds bude ze seznamu zase automaticky odstrann." --- freetds-0.82.orig/debian/po/de.po +++ freetds-0.82/debian/po/de.po @@ -0,0 +1,47 @@ +# Translation of glpi debconf templates to German +# Copyright (C) Michael Bramer , 2004. +# Copyright (C) Helge Kreutzmann , 2006, 2007. +# This file is distributed under the same license as the glpi package. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.63-3\n" +"Report-Msgid-Bugs-To: freetds@bugs.debian.org\n" +"POT-Creation-Date: 2006-10-19 00:31+0200\n" +"PO-Revision-Date: 2007-01-11 21:18+0100\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:1001 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Mchten Sie, dass FreeTDS als ODBC-Treiber registriert wird?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:1001 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Es scheint, dass Sie einen ODBC-Verwalter (Unixodbc oder iODBC) auf Ihrem " +"System installiert haben. FreeTDS stellt jetzt einen Open Database " +"Connectivity-Treiber bereit, der durch das /usr/bin/odbcinst-Hilfswerkzeug " +"beim Verwalter registriert werden kann." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:1001 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Falls Sie mchten, wird FreeTDS jetzt automatisch als ODBC-Treiber " +"installiert und automatisch aus der Liste gelscht, wenn Sie das FreeTDS-" +"Paket entfernen." --- freetds-0.82.orig/debian/po/es.po +++ freetds-0.82/debian/po/es.po @@ -0,0 +1,53 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2004-02-24 11:25-0800\n" +"Last-Translator: Unknown \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Quiere que el FreeTDS se registre como driver de ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Parece que est instalado un gerente de ODBC (conectividad abierta de bases " +"de dados), como unixodbc o iODBC. FreeTDS contiene un driver de ODBC que " +"puede ser registrado con el sistema usando la herramienta /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Si lo desea, el FreeTDS se aadir automaticamente a la lista de drivers " +"ahora y luego se quitar al remover el paquete freetds." --- freetds-0.82.orig/debian/po/fi.po +++ freetds-0.82/debian/po/fi.po @@ -0,0 +1,33 @@ +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-03-11 04:31+0100\n" +"PO-Revision-Date: 2008-04-18 20:30+0200\n" +"Last-Translator: Esko Arajärvi \n" +"Language-Team: Finnish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n =! 1);\n" +"X-Poedit-Language: Finnish\n" +"X-Poedit-Country: FINLAND\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:1001 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Tulisiko FreeTDS rekisteröidä ODBC-ajuriksi?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:1001 +msgid "You appear to have an ODBC manager (unixodbc or iODBC) installed on your system. FreeTDS now provides an Open Database Connectivity driver that can be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "Järjestelmässä on ODBC-hallintaohjelma (unixodbc tai iODBC) asennettuna. FreeTDS tarjoaa nykyään Open Database Connectivity -ajurin, joka voidaan rekisteröidä hallintaohjelmaan työkalulla /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:1001 +msgid "If you wish, FreeTDS will be automatically added as an ODBC driver now and will be automatically deleted from the list when you remove the freetds package." +msgstr "FreeTDS voidaan nyt haluttaessa automaattisesti lisätä ODBC-ajuriksi. Tällöin se poistetaan automaattisesti listalta, kun paketti freetds poistetaan." + --- freetds-0.82.orig/debian/po/fr.po +++ freetds-0.82/debian/po/fr.po @@ -0,0 +1,53 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-03-26 14:57+0100\n" +"Last-Translator: Jean-Luc Coulon (f5ibh) \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Faut-il enregistrer FreeTDS comme pilote ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Un gestionnaire ODBC (Open Database Connectivity) est install sur votre " +"systme (il s'agit de unixodbc ou iODBC). FreeTDS fournit prsent un " +"pilote ODBC qui peut tre enregistr par ce gestionnaire avec l'utilitaire /" +"usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Si vous le dsirez, FreeTDS sera maintenant ajout automatiquement comme " +"pilote ODBC et sera automatiquement supprim de la liste lors de la " +"suppression du paquet freetds." --- freetds-0.82.orig/debian/po/gl.po +++ freetds-0.82/debian/po/gl.po @@ -0,0 +1,44 @@ +# Galician translation of freetds's debconf templates +# This file is distributed under the same license as the freetds package. +# Jacobo Tarrio , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2007-02-27 10:06+0100\n" +"Last-Translator: Jacobo Tarrio \n" +"Language-Team: Galician \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "¿Quere rexistrar FreeTDS coma controlador ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Semella que ten un xestor ODBC (unixodbc ou iODBC) instalado no sistema. " +"FreeTDS agora fornece un controlador ODBC que se pode rexistrar co xestor " +"mediante a utilidade /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Se quere, hase engadir automaticamente FreeTDS coma controlador ODBC, e " +"cando elimine o paquete hase quitar automaticamente da lista." --- freetds-0.82.orig/debian/po/it.po +++ freetds-0.82/debian/po/it.po @@ -0,0 +1,46 @@ +# Italian (it) translation of debconf templates for freetds +# Copyright (C) 2006 Software in the Public Interest +# This file is distributed under the same license as the freetds package. +# Luca Monducci , 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.63 italian debconf templates\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2006-05-20 15:28+0100\n" +"Last-Translator: Luca Monducci \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Si vuole che FreeTDS sia registrato come driver ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Sembra che sul sistema sia installato un gestore ODBC (unixodbc o iODBC). " +"FreeTDS fornisce un driver ODBC (Open Database Connectivity) che pu essere " +"registrato per il gestore ODBC tramite il programma /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Se si desidera, FreeTDS pu essere automaticamente aggiunto come driver " +"ODBC inoltre viene cancellato dall'elenco quando il pacchetto freetds verr " +"rimosso." --- freetds-0.82.orig/debian/po/ja.po +++ freetds-0.82/debian/po/ja.po @@ -0,0 +1,54 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.61-6.2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-05-13 00:08+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "FreeTDS ODBC ɥ饤ФȤϿޤ?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"ODBC ޥ͡ (unixodbc iODBC) ƥ˥󥹥ȡ뤵Ƥ褦" +"FreeTDS ˤϡOpen Database Connectivity ɥ饤ФѰդƤޤ" +"ɥ饤Ф /usr/bin/odbcinst 桼ƥƥȤäƥޥ͡ϿǤޤ" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"˾СFreeTDS 򺣤˼ưŪ ODBC ɥ饤ФȤϿfreetds " +"ѥåݤϿꥹȤ鼫ưŪ˺褦ˤޤ" --- freetds-0.82.orig/debian/po/nl.po +++ freetds-0.82/debian/po/nl.po @@ -0,0 +1,56 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.63-3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2006-12-08 20:32+0000\n" +"Last-Translator: Vincent Zweije \n" +"Language-Team: Debian-Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "" +"Wilt u dat FreeTDS wordt geregistreerd als een ODBC stuurprogramma?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Zo te zien heeft u een ODBC beheerprogramma (unixodbc of iODBC) op uw computer " +"genstalleerd. FreeTDS voorziet nu in een \"Open Database Connectivity\" " +"stuurprogramma dat kan worden geregistreerd bij dit beheerprogramma door " +"middel van het /usr/sbin/odbcinst hulpprogramma." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Indien u dit wenst zal FreeTDS nu automatisch worden toegevoegd als een " +"ODBC stuurprogramma, en automatisch worden verwijderd van de lijst wanneer " +"u het freetds pakket verwijdert." --- freetds-0.82.orig/debian/po/pt.po +++ freetds-0.82/debian/po/pt.po @@ -0,0 +1,46 @@ +# Portuguese translation of freetds debconf messages. +# Copyright (C) 2007 Carlos Lisboa +# This file is distributed under the same license as the freetds package. +# Carlos Lisboa , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2007-02-06 10:50+0000\n" +"Last-Translator: Carlos Lisboa \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Deseja que o FreeTDS seja registado como um controlador ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Parece que possui um gestor ODBC (unixodbc ou iODBC) instalado no seu " +"sistema. O freetds providencia um controlador Open Database Connectivity que " +"pode ser registado com o gestor usando o utilitário /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Se desejar, o FreeTDS será automaticamente adicionado como um controlador " +"ODBC agora e será removido automaticamente da lista quando remover o pacote " +"do freetds." --- freetds-0.82.orig/debian/po/pt_BR.po +++ freetds-0.82/debian/po/pt_BR.po @@ -0,0 +1,55 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.61\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-03-27 03:42-0300\n" +"Last-Translator: Felipe Augusto van de Wiel (faw) \n" +"Language-Team: Portuguese/Brazil \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"pt_BR\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Voc gostaria que o FreeTDS fosse registrado como um driver ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Voc parece possuir um gerenciador ODBC (unixodbc ou iODBC) instalado em seu " +"sistema. FreeTDS agora fornece um driver de Conectividade para Bancos de " +"Dados Abertos (Open Database Connectivity) que pode ser registrado junto ao " +"gerenciador usando o utilitrio /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Se voc quiser, FreeTDS agora pode ser automaticamente adicionado como um " +"driver ODBC e ser automaticamente apagado da lista quando voc remover o " +"pacote freetds." --- freetds-0.82.orig/debian/po/ru.po +++ freetds-0.82/debian/po/ru.po @@ -0,0 +1,54 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2004-02-24 11:25-0800\n" +"Last-Translator: Ilgiz Kalmetev \n" +"Language-Team: Russian \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Vill du att FreeTDS ska registreras som en ODBC-drivare?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Du verkar ha en ODBC-hanterare (unixodbc eller iODBC) installerat p ditt " +"system. FreeTDS erbjuder en Open Database Connectivity drivare som kan " +"registreras med hanteraren med verktyget /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Om du nskar kan FreeTDS automatiskt lggas till som en ODBC-drivare nu och " +"kommer att automatiskt tas bort frn listan nr du tar bort freetds-paketet." + --- freetds-0.82.orig/debian/po/templates.pot +++ freetds-0.82/debian/po/templates.pot @@ -0,0 +1,49 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" --- freetds-0.82.orig/debian/po/vi.po +++ freetds-0.82/debian/po/vi.po @@ -0,0 +1,49 @@ +# Vietnamese Translation for freetds. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.61-6.2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-06-03 14:27+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "" +"Bạn có muốn đăng ký trình FreeTDS là một trình hỗ trợ thiết bị ODBC không?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Hình như hệ thống bạn chứa một trình quản lý ODBC (unixodbc hay iODBC) rồi. " +"Vào lúc này, trình FreeTDS cung cấp một trình hỗ trợ thiết bị (driver) Khả " +"năng kết nối đến Cơ sở Dữ liệu Mở (Open Database Connectivity: ODBC) mà bạn " +"có thể đăng ký với trình quản lý ấy dùng trình tiến ích:\n" +"/usr/bin/odbcinst " + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Nếu bạn muốn, lúc này sẽ tự động thêm trình FreeTDS là một trình hỗ trợ " +"thiết bị ODBC, và khi bạn loại bỏ gói tin freetds, sẽ tự động xóa bỏ nó ra " +"danh sách." --- freetds-0.82.orig/src/tds/locale.c +++ freetds-0.82/src/tds/locale.c @@ -34,6 +34,10 @@ #include #endif /* HAVE_STDLIB_H */ +#ifdef HAVE_LANGINFO_H +#include +#endif + #include "tds.h" #include "tds_configs.h" #include "replacements.h" @@ -68,12 +72,21 @@ if (in) { tds_read_conf_section(in, "default", tds_parse_locale, locale); + } +#ifdef HAVE_NL_LANGINFO + if ((s = nl_langinfo(CODESET))) { + free(locale->server_charset); + free(locale->client_charset); + locale->client_charset = strdup(s); + locale->server_charset = strdup(s); + } +#endif + if (in) { s = getenv("LANG"); if (s && s[0]) { int found; char buf[128]; const char *strip = "@._"; - const char *charset = NULL; /* do not change environment !!! */ tds_strlcpy(buf, s, sizeof(buf)); @@ -96,21 +109,15 @@ if (!s) continue; *s = 0; - if (*strip == '.') - charset = s+1; rewind(in); found = tds_read_conf_section(in, buf, tds_parse_locale, locale); } - /* charset specified in LANG ?? */ - if (charset) { - free(locale->client_charset); - locale->client_charset = strdup(charset); - } } fclose(in); } + return locale; } @@ -122,6 +129,9 @@ if (!strcmp(option, TDS_STR_CHARSET)) { free(locale->server_charset); locale->server_charset = strdup(value); + } else if (!strcmp(option, TDS_STR_CLCHARSET)) { + free(locale->client_charset); + locale->client_charset = strdup(value); } else if (!strcmp(option, TDS_STR_LANGUAGE)) { free(locale->language); locale->language = strdup(value); --- freetds-0.82.orig/src/tds/mem.c +++ freetds-0.82/src/tds/mem.c @@ -757,6 +757,9 @@ if (locale->server_charset) if (!tds_dstr_copy(&connection->server_charset, locale->server_charset)) goto Cleanup; + if (locale->client_charset) + if (!tds_dstr_copy(&connection->client_charset,locale->client_charset)) + goto Cleanup; } if (tds_dstr_isempty(&connection->language)) { if (!tds_dstr_copy(&connection->language, TDS_DEF_LANG))