Displaying 20 results from an estimated 30 matches for "iconv_const".
2014 Jan 06
1
Re: [PATCH 2/2] lib: utf16: Fix const-correctness issues in _hivex_recode function.
...p;outp, &outlen);
> if (r == (size_t) -1) {
This (the constness of the input argument) is the difference between the
iconv implementation provided in GNU libc and the other ones, even
though it reflects POSIX [1].
The iconv.m4 module in gnulib checks for this too, and AC_DEFINE's
ICONV_CONST as "const" (or empty) depending on the actual prototype of
iconv(3).
[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
--
Pino Toscano
2008 Feb 03
5
Compiling with --disable-iconv
I've been trying to compile 3.0.0pre8 under cygwin. I was getting a problem with the iconv functions which I think are related to the cygwin environment and its iconv.h.
To bypass it I wanted to compile with the --disable-iconv function. I'm still getting the following errors during compile:
/usr/src/rsync-3.0.0pre8/rsync.c:85: undefined reference to `_iconv_open'rsync.o: In
2008 Jun 10
5
DO NOT REPLY [Bug 5532] New: rsync / autoconf fails to detect libiconv on Solaris 10
https://bugzilla.samba.org/show_bug.cgi?id=5532
Summary: rsync / autoconf fails to detect libiconv on Solaris 10
Product: rsync
Version: 3.0.2
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: minor
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy:
2018 Feb 28
0
[PATCH v3 1/2] common: extract UTF-8 conversion function
...n (input);
- outalloc = len; /* Initial guess. */
-
- again:
- inlen = len;
- outlen = outalloc;
- out = malloc (outlen + 1);
- if (out == NULL) {
- err = errno;
- iconv_close (ic);
- errno = err;
- return NULL;
- }
- inp = input;
- outp = out;
-
- r = iconv (ic, (ICONV_CONST char **) &inp, &inlen, &outp, &outlen);
- if (r == (size_t) -1) {
- if (errno == E2BIG) {
- err = errno;
- prev = outalloc;
- /* Try again with a larger output buffer. */
- free (out);
- outalloc *= 2;
- if (outalloc < prev) {
- iconv_clos...
2018 Feb 28
2
[PATCH v3 0/2] inspect: basic UTF-8 encoding for rpm
Diff to v2:
* inlined local_string_to_utf8
Cédric Bosdonnat (2):
common: extract UTF-8 conversion function
inspector: rpm summary and description may not be utf-8
common/utils/guestfs-utils.h | 11 +++++
common/utils/libxml2-utils.c | 69 +--------------------------
common/utils/utils.c | 64 +++++++++++++++++++++++++
2015 Apr 08
0
[PATCH 04/10] Use AC_CONFIG_LIBOBJ_DIR and AC_REPLACE_FUNCS to adhere to autoconf standards
...for replacement function since AC_LIBOBJ does not
+dnl officially support subdirs and fails with automake
+AC_CONFIG_LIBOBJ_DIR([lib])
+
# We must decide this before testing the compiler.
# Please allow this to default to yes, so that your users have more
@@ -488,8 +492,7 @@ AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
dnl AC_MSG_NOTICE([Looking in libraries: $LIBS])
-AC_CHECK_FUNCS(inet_ntop, , [AC_LIBOBJ(lib/inet_ntop)])
-AC_CHECK_FUNCS(inet_pton, , [AC_LIBOBJ(lib/inet_pton)])
+AC_REPLACE_FUNCS([inet_ntop inet_pton])
AC_HAVE_TYPE([struct addrinfo], [#include <netdb.h>])...
2007 Oct 24
2
DO NOT REPLY [Bug 5040] New: multiple mount point directory sources aren't completely recursive
...enabled but receive an error:
iconv_open cannot open conversion file /usr/lib/nls/conv/_
trying to compile after configure --disable-iconv fails:
Undefined first referenced
symbol in file
iconvbufs log.o
which is due to ICONV_CONST still being defined
------
actual problem:
/usr/local/bin/rsync --temp-dir=/usr3/tmp -v --progress --bwlimit=100
--no-blocking-io -a -R --delete --force -x --exclude='/usr3/online_data/**'
--exclude='/usr3/tmp/**' /usr2 /usr3 dbbu:
results in /usr2 having it's subdirectories...
2013 Dec 31
2
[PATCH 1/2] lib: write: Remove unused variable.
---
lib/write.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/write.c b/lib/write.c
index 8c4dd8e..384c6b2 100644
--- a/lib/write.c
+++ b/lib/write.c
@@ -954,7 +954,6 @@ hivex_node_set_values (hive_h *h, hive_node_h node,
for (i = 0; i < nr_values; ++i) {
/* Allocate vk record to store this (key, value) pair. */
static const char vk_id[2] = { 'v', 'k' };
-
2014 Nov 06
3
[PATCH 0/2] hivex: small portability fixes
Hi,
this small series cherry-picks a couple of the portability fixes
recently done in libguestfs to hivex.
There should be no actual change on Linux.
Thanks,
--
Pino
Pino Toscano (2):
normalize iconv handling
ruby: fix detection of ruby library
bootstrap | 1 +
configure.ac | 8 +++++++-
lib/utf16.c | 3 +--
3 files changed, 9 insertions(+), 3 deletions(-)
--
1.9.3
2008 Feb 26
4
rsync-3.0.0pre10 and iconv
Hello,
I am trying to get rsync-3.0.0pre10 --iconv option working between two linux hosts in local network.
The client host is running Fedora Core 4 (kernel 2.6.17) and is using iso8859-1 character set. LANG=en_US
The daemon host is running Centos 5 (kernel 2.6.18) and is using utf-8 character set. LANG=en_US.UTF-8
Rsync is transferring files properly without --iconv switch:
fc4: (connected
2018 Feb 15
3
[PATCH v2 0/2] inspect: basic UTF-8 encoding for rpm
This needs Richard's patch:
https://www.redhat.com/archives/libguestfs/2018-February/msg00099.html
Diff to v1:
* factorized the UTF-8 conversion functions
* small style fixes
Cédric Bosdonnat (2):
common: extract UTF-8 conversion function
inspector: rpm summary and description may not be utf-8
common/utils/guestfs-utils.h | 1 +
common/utils/libxml2-utils.c
2018 Feb 09
3
[PATCH] Add a cache for iconv_t handles to hive_t
...r *out = malloc (outlen + 1);
if (out == NULL) {
int err = errno;
- iconv_close (ic);
+ _hivex_release_iconv (h, t);
errno = err;
return NULL;
}
@@ -56,18 +53,17 @@ _hivex_recode (const char *input_encoding, const char *input, size_t input_len,
size_t r = iconv (ic, (ICONV_CONST char **) &inp, &inlen, &outp, &outlen);
if (r == (size_t) -1) {
+ int err = errno;
if (errno == E2BIG) {
- int err = errno;
/* Reset errno here because we don't want to accidentally
* return E2BIG to a library caller.
*/
- errno = 0;...
2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...s(+), 3 deletions(-)
diff --git a/log.c b/log.c
index e4ba1cce..a973b519 100644
--- a/log.c
+++ b/log.c
@@ -47,6 +47,7 @@ extern mode_t orig_umask;
extern char *auth_user;
extern char *stdout_format;
extern char *logfile_format;
+extern char *logafter_format;
extern char *logfile_name;
#ifdef ICONV_CONST
extern iconv_t ic_chck;
@@ -271,6 +272,8 @@ void rwrite(enum logcode code, const char *buf, int len, int is_utf8)
* that the msg gets logged and then sent to stderr after that. */
if (am_daemon > 0 && code != FCLIENT)
code = FLOG;
+ } else if (code == FLOG_AFTER) {
+ code =...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...child_pipe[1], STDOUT_FILENO) < 0) {
rsyserr(FERROR, errno, "Failed to dup/close");
@@ -150,6 +158,9 @@
close(to_child_pipe[0]);
if (from_child_pipe[1] != STDOUT_FILENO)
close(from_child_pipe[1]);
+#ifdef HAVE_SOCKETPAIR
+ local_socket = child_socket[0];
+#endif
#ifdef ICONV_CONST
setup_iconv();
#endif
@@ -157,6 +168,9 @@
}
if (close(from_child_pipe[1]) < 0 ||
+#ifdef HAVE_SOCKETPAIR
+ close(child_socket[0]) < 0 ||
+#endif
close(to_child_pipe[0]) < 0) {
rsyserr(FERROR, errno, "Failed to close");
exit_cleanup(RERR_IPC);
@@ -164,6 +...
2001 Sep 30
3
UTF-8 stuff
...if iconv can't encode from this encoding, try
- * simple_utf8_encode()
- */
- return simple_utf8_encode(from, to, encoding);
- } else {
- perror("iconv_open");
- }
- }
-
- from_left = strlen(from);
- to_left = BUFSIZE;
- from_p = from;
- to_p = buffer;
-
- if(iconv(cd, (ICONV_CONST char **)(&from_p), &from_left, &to_p,
- &to_left) == (size_t)-1)
- {
- iconv_close(cd);
- switch(errno)
- {
- case E2BIG:
- /* if the buffer is too small, try simple_utf8_encode()
- */
- return simple_utf8_encode(from, to, encoding);
- case EILSEQ:
- case EINVAL:
-...
2015 Jun 17
8
[Bug 11338] New: Rsync Crash - Segmentation fault
https://bugzilla.samba.org/show_bug.cgi?id=11338
Bug ID: 11338
Summary: Rsync Crash - Segmentation fault
Product: rsync
Version: 3.1.1
Hardware: x64
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter:
2018 Feb 09
0
Re: [PATCH] Add a cache for iconv_t handles to hive_t
...ULL) {
> int err = errno;
> - iconv_close (ic);
> + _hivex_release_iconv (h, t);
> errno = err;
> return NULL;
> }
> @@ -56,18 +53,17 @@ _hivex_recode (const char *input_encoding, const char *input, size_t input_len,
>
> size_t r = iconv (ic, (ICONV_CONST char **) &inp, &inlen, &outp, &outlen);
> if (r == (size_t) -1) {
> + int err = errno;
> if (errno == E2BIG) {
> - int err = errno;
> /* Reset errno here because we don't want to accidentally
> * return E2BIG to a library caller....
2018 Feb 15
0
[PATCH] Introduce a wrapper around xmlParseURI.
...n (input);
+ outalloc = len; /* Initial guess. */
+
+ again:
+ inlen = len;
+ outlen = outalloc;
+ out = malloc (outlen + 1);
+ if (out == NULL) {
+ err = errno;
+ iconv_close (ic);
+ errno = err;
+ return NULL;
+ }
+ inp = input;
+ outp = out;
+
+ r = iconv (ic, (ICONV_CONST char **) &inp, &inlen, &outp, &outlen);
+ if (r == (size_t) -1) {
+ if (errno == E2BIG) {
+ err = errno;
+ prev = outalloc;
+ /* Try again with a larger output buffer. */
+ free (out);
+ outalloc *= 2;
+ if (outalloc < prev) {
+ iconv_clos...
2018 Feb 09
2
[PATCH] Add a cache for iconv_t handles to hive_t
...r *out = malloc (outlen + 1);
if (out == NULL) {
int err = errno;
- iconv_close (ic);
+ _hivex_release_iconv (h, t);
errno = err;
return NULL;
}
@@ -56,18 +53,17 @@ _hivex_recode (const char *input_encoding, const char *input, size_t input_len,
size_t r = iconv (ic, (ICONV_CONST char **) &inp, &inlen, &outp, &outlen);
if (r == (size_t) -1) {
+ int err = errno;
if (errno == E2BIG) {
- int err = errno;
/* Reset errno here because we don't want to accidentally
* return E2BIG to a library caller.
*/
- errno = 0;...
2018 Nov 02
0
[PATCH REPOST] Introduce a wrapper around xmlParseURI.
...n (input);
+ outalloc = len; /* Initial guess. */
+
+ again:
+ inlen = len;
+ outlen = outalloc;
+ out = malloc (outlen + 1);
+ if (out == NULL) {
+ err = errno;
+ iconv_close (ic);
+ errno = err;
+ return NULL;
+ }
+ inp = input;
+ outp = out;
+
+ r = iconv (ic, (ICONV_CONST char **) &inp, &inlen, &outp, &outlen);
+ if (r == (size_t) -1) {
+ if (errno == E2BIG) {
+ err = errno;
+ prev = outalloc;
+ /* Try again with a larger output buffer. */
+ free (out);
+ outalloc *= 2;
+ if (outalloc < prev) {
+ iconv_clos...