OSDN Git Service
(root)
/
mubot4fb
/
mubot4fb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c4e77
)
fix utf8 flag handling betweeen script and BDB::Mysql
author
ISHIKAWA Mutsumi
<ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:25:09 +0000
(15:25 +0900)
committer
ISHIKAWA Mutsumi
<ishikawa@hanzubon.jp>
Thu, 18 Oct 2012 06:25:09 +0000
(15:25 +0900)
mubot4fb.pl
patch
|
blob
|
history
diff --git
a/mubot4fb.pl
b/mubot4fb.pl
index
abe3187
..
0facb44
100755
(executable)
--- a/
mubot4fb.pl
+++ b/
mubot4fb.pl
@@
-42,7
+42,7
@@
sub fb_init {
sub db_init {
my ($me) = @_;
- $me->{dbh} = DBI->connect('DBI:mysql:'.$me->{cfg}->{database}, $me->{cfg}->{db_user}, $me->{cfg}->{db_pass}) || die $DBI::errstr;
+ $me->{dbh} = DBI->connect('DBI:mysql:'.$me->{cfg}->{database}, $me->{cfg}->{db_user}, $me->{cfg}->{db_pass}
,{mysql_enable_utf8 => 1}
) || die $DBI::errstr;
}
sub misc_init {