Skip to content

Commit

Permalink
enhancement: attempt to transliterate characters that fail to be conv…
Browse files Browse the repository at this point in the history
…erted (#1124)

iconv_open failed in some scenarios
  • Loading branch information
midwan committed Oct 28, 2023
1 parent c4b5fd1 commit 6be716e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdep/amiberry_filesys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void utf8_to_latin1_string(std::string& input, std::string& output)
std::vector<char> buf(1024);
std::string dst;

auto* iconv_ = iconv_open("ISO-8859-1", "UTF-8");
auto* iconv_ = iconv_open("ISO-8859-1//TRANSLIT", "UTF-8");

while (0 < src_size) {
char* dst_ptr = &buf[0];
Expand Down

0 comments on commit 6be716e

Please sign in to comment.