search for: guestfs_int_local_string_to_utf8

Displaying 2 results from an estimated 2 matches for "guestfs_int_local_string_to_utf8".

2018 Feb 28
0
[PATCH v3 1/2] common: extract UTF-8 conversion function
...stfs_int_full_path (const char *dir, const char *name); +extern char *guestfs_int_string_to_utf8 (/* const */ char *input, const char *encoding); + +/* Would be const, but the interface to iconv is not const-correct on + * all platforms. The input string is not touched. + */ +static inline char * +guestfs_int_local_string_to_utf8 (/* const */ char *input) +{ + return guestfs_int_string_to_utf8 (input, nl_langinfo (CODESET)); +} /* Not all language bindings know how to deal with Pointer arguments. * Those that don't will use this macro which complains noisily and diff --git a/common/utils/libxml2-utils.c b/common/u...
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 +++++++++++++++++++++++++