mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
The default DBF encoding still is ASCII.
This commit is contained in:
parent
55584406fa
commit
c5f0aeec93
@ -67,7 +67,14 @@
|
||||
(:lambda (clauses-list)
|
||||
(alexandria:alist-plist clauses-list)))
|
||||
|
||||
(defrule load-dbf-command (and dbf-source (? file-encoding)
|
||||
;;; dbf defaults to ascii rather than utf-8
|
||||
(defrule dbf-file-encoding (? (and kw-with kw-encoding encoding))
|
||||
(:lambda (enc)
|
||||
(if enc
|
||||
(bind (((_ _ encoding) enc)) encoding)
|
||||
:ascii)))
|
||||
|
||||
(defrule load-dbf-command (and dbf-source (? dbf-file-encoding)
|
||||
target load-dbf-optional-clauses)
|
||||
(:lambda (command)
|
||||
(destructuring-bind (source encoding target clauses) command
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user