diff options
| author | Eli Zaretskii | 2021-12-13 15:35:31 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2021-12-13 15:35:31 +0200 |
| commit | 57efc5d1bb60f6abb4766387b708e20532638135 (patch) | |
| tree | d56a56ca124aa0f419bc387c91642d8876c27ef9 /src/sqlite.c | |
| parent | 38f782f48df3a35c2735707892610325a5cba92d (diff) | |
| download | emacs-57efc5d1bb60f6abb4766387b708e20532638135.tar.gz emacs-57efc5d1bb60f6abb4766387b708e20532638135.zip | |
* src/sqlite.c (Fsqlite_open, Fsqlite_load_extension): Use ENCODE_FILE.
Diffstat (limited to 'src/sqlite.c')
| -rw-r--r-- | src/sqlite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sqlite.c b/src/sqlite.c index 4968ce3f690..248ad478d57 100644 --- a/src/sqlite.c +++ b/src/sqlite.c | |||
| @@ -247,7 +247,7 @@ If FILE is nil, an in-memory database will be opened instead. */) | |||
| 247 | if (!NILP (file)) | 247 | if (!NILP (file)) |
| 248 | { | 248 | { |
| 249 | CHECK_STRING (file); | 249 | CHECK_STRING (file); |
| 250 | file = encode_string (Fexpand_file_name (file, Qnil)); | 250 | file = ENCODE_FILE (Fexpand_file_name (file, Qnil)); |
| 251 | name = xstrdup (SSDATA (file)); | 251 | name = xstrdup (SSDATA (file)); |
| 252 | } | 252 | } |
| 253 | else | 253 | else |
| @@ -596,7 +596,7 @@ system-dependent file-name extension. */) | |||
| 596 | { | 596 | { |
| 597 | check_sqlite (db, false); | 597 | check_sqlite (db, false); |
| 598 | CHECK_STRING (module); | 598 | CHECK_STRING (module); |
| 599 | Lisp_Object module_encoded = encode_string (Fexpand_file_name (module, Qnil)); | 599 | Lisp_Object module_encoded = ENCODE_FILE (Fexpand_file_name (module, Qnil)); |
| 600 | 600 | ||
| 601 | sqlite3 *sdb = XSQLITE (db)->db; | 601 | sqlite3 *sdb = XSQLITE (db)->db; |
| 602 | int result = sqlite3_load_extension (sdb, SSDATA (module_encoded), | 602 | int result = sqlite3_load_extension (sdb, SSDATA (module_encoded), |