From 98a650dbbe1e2ae35a31679d4e5eadb9285d37dd Mon Sep 17 00:00:00 2001
From: Dusty Jones <dusty.jones@rackspace.com>
Date: Mon, 21 Jul 2008 12:23:44 -0500
Subject: [PATCH] Ruby ODBC offers a UTF version of the library.

 This creates a odbc_utf8.so file and needs to be
 required using

#  UTF8 Version
require 'odbc_utf8'
# Non-UTF8 Version
require 'odbc'

This patch allows UTF8 and Normal version to coexist.
---
 lib/dbd/ODBC.rb |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/lib/dbd/ODBC.rb b/lib/dbd/ODBC.rb
index 8f6a1e6..db73c58 100644
--- a/lib/dbd/ODBC.rb
+++ b/lib/dbd/ODBC.rb
@@ -31,7 +31,11 @@
 #
 
 $:.delete(".")
-require "odbc"
+if $KCODE == "UTF8"
+  require "odbc_utf8"
+else
+  requre "odbc"
+end
 $: << "."
 
 module DBI
-- 
1.5.4.3

