Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
60d465db
Commit
60d465db
authored
Nov 20, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the new ICONV_CONST definition.
parent
3ebdd3c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
log.c
log.c
+5
-2
No files found.
log.c
View file @
60d465db
...
...
@@ -300,15 +300,18 @@ void rwrite(enum logcode code, const char *buf, int len)
?
buf
[
--
len
]
:
0
;
#if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H
#ifndef ICONV_CONST
#define ICONV_CONST
#endif
if
(
ic_chck
!=
(
iconv_t
)
-
1
)
{
char
convbuf
[
1024
];
const
char
*
in_buf
=
buf
;
ICONV_CONST
char
*
in_buf
=
(
ICONV_CONST
char
*
)
buf
;
char
*
out_buf
=
convbuf
;
size_t
in_cnt
=
len
,
out_cnt
=
sizeof
convbuf
-
1
;
iconv
(
ic_chck
,
NULL
,
0
,
NULL
,
0
);
while
(
iconv
(
ic_chck
,
&
in_buf
,
&
in_cnt
,
&
out_buf
,
&
out_cnt
)
==
(
size_t
)
-
1
)
{
&
out_buf
,
&
out_cnt
)
==
(
size_t
)
-
1
)
{
if
(
out_buf
!=
convbuf
)
{
filtered_fwrite
(
f
,
convbuf
,
out_buf
-
convbuf
,
0
);
out_buf
=
convbuf
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment