7c54162cec5c2a0540abe920b10fef44c10f9e4b braney Tue May 7 15:58:53 2019 -0700 remove spurious slash at end of iconv call #23423 diff --git src/lib/windowsToAscii.c src/lib/windowsToAscii.c index f3c373c..b3d91fa 100644 --- src/lib/windowsToAscii.c +++ src/lib/windowsToAscii.c @@ -1,23 +1,23 @@ /* Copyright (C) 2017 The Regents of the University of California * * See README in this or parent directory for licensing information. */ #include "iconv.h" #include "common.h" char *windowsToAscii(char *input) /* Convert windows-1250 to ascii. */ { if (input == NULL) return NULL; -iconv_t convType = iconv_open("ASCII//TRANSLIT", "WINDOWS-1250/"); +iconv_t convType = iconv_open("ASCII//TRANSLIT", "WINDOWS-1250"); size_t inSize = strlen(input); size_t outSize = 1024; char buffer[outSize]; char *outString = buffer; char *inPtr = input; iconv(convType, &inPtr, &inSize, &outString, &outSize); *outString = 0; return cloneString(buffer); }