aboutsummaryrefslogtreecommitdiff
path: root/miscutils/iconv.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* iconv: fix incorrect fixRon Yorston2023-11-081-4/+5
| | | | | | | | | | | | Part of commit 412c2cab62 (iconv: minor fixes) was intended to avoid having to enter ^Z twice to signal EOF when input was coming from the console. Unfortunately there were unintended consequences. Use a different method to detect EOF. Costs 32-48 bytes. (GitHuv issue #374)
* iconv: use temporary file for outputRon Yorston2023-04-271-2/+11
| | | | | | | | On Linux iconv allows the output file specified with '-o' to be the same as the input file. Do the same for our version by creating a temporary output file and renaming it on completion. Costs 64-88 bytes.
* iconv: minor fixesRon Yorston2020-02-181-13/+14
| | | | | | | Add an explicit test for EOF. Otherwise when processing input from interactive stdin it's necessary to enter ^Z twice to signal EOF. Allow '-' to be mixed with actual file names on the command line.
* iconv: more improvementsRon Yorston2020-02-161-55/+19
| | | | | | | | | | | | | - Only load required functions from mlang.dll. - The '-f' and '-t' options aren't compulsory. - Use xstrdup() instead of xstrndup() and don't check its return value. - Replace string comparisons when checking for encoding options with a single call to index_in_strings(). Saves 224 bytes.
* iconv: code shrink (2)Ron Yorston2020-02-141-86/+34
| | | | | | | | | Rewrite iconv_open/iconv/iconv_close to merge Windows-specific code. Make them static. Use getopt32() to process options. Saves 400 bytes.
* iconv: code shrinkRon Yorston2020-02-141-456/+457
| | | | | | | Reduce the size of the codepage alias table by concatenating the alias strings rather than storing pointers to them. Saves 1328 bytes.
* iconv: depends on PLATFORM_MINGW32Ron Yorston2019-01-101-0/+1
|
* iconv: import from win-iconvRon Yorston2019-01-061-0/+1846
Source imported from https://github.com/win-iconv/win-iconv and modified to build in busybox-w32.