libzds: add codepage conversion

Add codepage conversion capabilities to libzds.
Whenever a dataset is read and an appropriate iconv handle is set for the
dataset the conversion is automatically performed.

Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Stefan Haberland
2021-04-28 16:23:00 +02:00
committed by Jan Höppner
parent 529ad4000e
commit cdf716a7a9
2 changed files with 187 additions and 6 deletions

View File

@@ -115,7 +115,7 @@
#include "lib/util_base.h"
#include "lib/util_list.h"
#include "vtoc.h"
#include <iconv.h>
/**
@@ -834,6 +834,11 @@ void lzds_dshandle_get_errorlog(struct dshandle *dsh, struct errorlog **log);
int lzds_dshandle_set_seekbuffer(struct dshandle *dsh,
unsigned long long seek_buffer_size);
/**
* @brief Set iconv handle for codepage conversion.
*/
int lzds_dshandle_set_iconv(struct dshandle *dsh, iconv_t *iconv);
/**
* @brief Get the size of the data set in number of tracks (sum of all extents).
*/