projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3974038
)
It's bad to use lf_conv here.
author
Hiroshi Inoue
<h-inoue@dream.email.ne.jp>
Mon, 3 Apr 2017 12:48:57 +0000
(21:48 +0900)
committer
Hiroshi Inoue
<h-inoue@dream.email.ne.jp>
Mon, 3 Apr 2017 12:48:57 +0000
(21:48 +0900)
convert.c
patch
|
blob
|
blame
|
history
diff --git
a/convert.c
b/convert.c
index 36e1278ffba71ebd19c3cd5c7e1338e011e5dff6..dec2198202817c7dee74a2830d8d206be7286aae 100644
(file)
--- a/
convert.c
+++ b/
convert.c
@@
-4398,12
+4398,11
@@
mylog(" %s:C_WCHAR=%d contents=%s(%d)\n", __FUNCTION__, param_ctype, buffer, use
{
ssize_t wstrlen = ucs2strlen((SQLWCHAR *) buffer);
size_t allen = (wstrlen + 1) * sizeof(wchar_t);
- BOOL lf_conv = conn->connInfo.lf_conversion;
wchar_t *al1;
mylog("%s:hybrid convert wstrlen=%d\n", __FUNCTION__, wstrlen);
al1 = (wchar_t *) malloc(allen);
- wstrlen = utf8_to_wcs_lf(allocbuf, SQL_NTS,
lf_conv
, al1, allen, FALSE);
+ wstrlen = utf8_to_wcs_lf(allocbuf, SQL_NTS,
FALSE
, al1, allen, FALSE);
free(allocbuf);
allen = 4 * wstrlen;
allocbuf = malloc(allen + 1);