diff options
author | jbj <devnull@localhost> | 1998-09-27 22:03:52 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-09-27 22:03:52 +0000 |
commit | fd068345e6e5165b8b772edc3392adda228800fe (patch) | |
tree | c331c30f8ec940d6d0d2d36dec3f6f12db257132 /lib/test.c | |
parent | 4ce5eff979df73a23c4ef071e52cff67693e15d2 (diff) | |
download | librpm-tizen-fd068345e6e5165b8b772edc3392adda228800fe.tar.gz librpm-tizen-fd068345e6e5165b8b772edc3392adda228800fe.tar.bz2 librpm-tizen-fd068345e6e5165b8b772edc3392adda228800fe.zip |
add Slovak translation (Stanislav Meduna <stano@trillian.eunet.sk>)
gettextify rpmMessage/rpmError/fprintf messages.
CVS patchset: 2368
CVS date: 1998/09/27 22:03:52
Diffstat (limited to 'lib/test.c')
-rw-r--r-- | lib/test.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/test.c b/lib/test.c index f85d9cd52..66ae506f2 100644 --- a/lib/test.c +++ b/lib/test.c @@ -1,5 +1,6 @@ #include "system.h" +#include "intl.h" #include "rpmlib.h" void main(int argc, char **argv) @@ -24,29 +25,29 @@ void main(int argc, char **argv) headerAddEntry(h, RPMTAG_VENDOR, RPM_CHAR_TYPE, ca, strlen(ca)); headerAddEntry(h, RPMTAG_SIZE, RPM_INT32_TYPE, i32a, 3); - printf("Original = %d\n", headerSizeof(h)); + fprintf(stdout, "Original = %d\n", headerSizeof(h)); fd = open("test.out", O_WRONLY|O_CREAT); headerWrite(fd, h); close(fd); h2 = headerCopy(h); - printf("Copy = %d\n", headerSizeof(h2)); + fprintf(stdout, "Copy = %d\n", headerSizeof(h2)); fd = open("test.out", O_RDONLY); h3 = headerRead(fd); close(fd); - printf("From disk = %d\n", headerSizeof(h3)); + fprintf(stdout, "From disk = %d\n", headerSizeof(h3)); h4 = headerCopy(h3); - printf("Copy of disk = %d\n", headerSizeof(h4)); + fprintf(stdout, "Copy of disk = %d\n", headerSizeof(h4)); - printf("=====================\n"); - printf("Original\n"); + fprintf(stdout, "=====================\n"); + fprintf(stdout, "Original\n"); headerDump(h, stdout, 1); - printf("=====================\n"); - printf("From disk\n"); + fprintf(stdout, "=====================\n"); + fprintf(stdout, "From disk\n"); headerDump(h3, stdout, 1); - printf("=====================\n"); - printf("Copy of disk\n"); + fprintf(stdout, "=====================\n"); + fprintf(stdout, "Copy of disk\n"); headerDump(h4, stdout, 1); #if 0 |