Skip to content

Commit

Permalink
* Fix db2unicode.pl for cases where SQLite uses single quotes in dump…
Browse files Browse the repository at this point in the history
…s. Thx Yiliya and alex_hk90 for pointing it out
  • Loading branch information
audreyt committed Apr 1, 2013
1 parent 6a2bfce commit 3a9121e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db2unicode.pl
Expand Up @@ -21,8 +21,8 @@
open my $dump, '<:utf8', 'dict-revised.sqlite3.dump';
local $/;
while (<$dump>) {
s< "\{\[ ($compat) \]\}" >
< '"'.($map{"x$1"} || $map{$1}) . '"' >egx;
s< (['"])\{\[ ($compat) \]\}\1 >
< $1.($map{"x$2"} || $map{$2}).$1 >egx;
s< \{\[ ($re) \]\} >< $map{$1} >egx;
print;
}
Expand Down

0 comments on commit 3a9121e

Please sign in to comment.