aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/iconv.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-05-06 14:47:42 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-05-06 14:49:13 +0300
commita3d97e95f766c9c378194ee49361b375f093b26f (patch)
tree78d6e93d2a306cb1f8fd8de8646e7b6c305b1a9d /main/musl/iconv.c
parent1307a9dd234c4456d861a237088d1406fd7e7b86 (diff)
downloadaports-a3d97e95f766c9c378194ee49361b375f093b26f.tar.bz2
aports-a3d97e95f766c9c378194ee49361b375f093b26f.tar.xz
main/musl: fix iconv error messages, ldconfig to create symlinks
ldconfig is used by some packages' install script to create the SONAME symlinks in the DESTDIR. do those symlinks for non-system directories.
Diffstat (limited to 'main/musl/iconv.c')
-rw-r--r--main/musl/iconv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/musl/iconv.c b/main/musl/iconv.c
index bfd6023878..f5d5ce2aa7 100644
--- a/main/musl/iconv.c
+++ b/main/musl/iconv.c
@@ -48,9 +48,9 @@ int main(int argc, char **argv)
cd = iconv_open(to, from);
if (cd == (iconv_t)-1) {
if (iconv_open(to, "WCHAR_T") == (iconv_t)-1)
- fprintf(stderr, "iconv: destination charset %s", to);
+ fprintf(stderr, "iconv: destination charset %s: ", to);
else
- fprintf(stderr, "iconv: source charset %s", from);
+ fprintf(stderr, "iconv: source charset %s: ", from);
perror("");
exit(1);
}
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
f = stdin;
argv[optind] = "(stdin)";
} else if (!(f = fopen(argv[optind], "rb"))) {
- fprintf(stderr, "iconv: %s", argv[optind]);
+ fprintf(stderr, "iconv: %s: ", argv[optind]);
perror("");
err = 1;
continue;
@@ -101,7 +101,7 @@ int main(int argc, char **argv)
if (inb) memmove(buf, in, inb);
}
if (ferror(f)) {
- fprintf(stderr, "iconv: %s", argv[optind]);
+ fprintf(stderr, "iconv: %s: ", argv[optind]);
perror("");
err = 1;
}