mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Estonian translation, .texi man pages.
This commit is contained in:
parent
7cf01ff10d
commit
64ddc393e1
71 changed files with 4337 additions and 445 deletions
|
@ -1,3 +1,13 @@
|
|||
2001-04-14 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* strgutil.c (utf8_to_native): Fixed a segv. Thanks to Keith Clayton.
|
||||
|
||||
2001-04-13 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* iobuf.c (iobuf_fopen): Removed because it is not used and
|
||||
furthermore mode is ignored for an fname of "-". Suggested by
|
||||
Florian Weimer.
|
||||
|
||||
2001-04-02 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* iobuf.c (translate_file_handle): New. Use this function
|
||||
|
|
33
util/iobuf.c
33
util/iobuf.c
|
@ -1218,39 +1218,6 @@ iobuf_openrw( const char *fname )
|
|||
}
|
||||
|
||||
|
||||
|
||||
/****************
|
||||
* You can overwrite the normal iobuf behaviour by using this function.
|
||||
* If used the iobuf is a simple wrapper around stdio.
|
||||
* NULL if an error occures and sets errno
|
||||
*/
|
||||
IOBUF
|
||||
iobuf_fopen( const char *fname, const char *mode )
|
||||
{
|
||||
IOBUF a;
|
||||
FILE *fp;
|
||||
int print_only = 0;
|
||||
|
||||
if( !fname || (*fname=='-' && !fname[1]) ) {
|
||||
fp = stdin;
|
||||
#ifdef HAVE_DOSISH_SYSTEM /* We can't use USE_SETMODE here */
|
||||
setmode ( fileno(fp) , O_BINARY );
|
||||
#endif
|
||||
fname = "[stdin]";
|
||||
print_only = 1;
|
||||
}
|
||||
else if( !(fp = fopen(fname, mode) ) )
|
||||
return NULL;
|
||||
a = iobuf_alloc(1, 8192 );
|
||||
a->directfp = fp;
|
||||
a->real_fname = m_strdup( fname );
|
||||
|
||||
if( DBG_IOBUF )
|
||||
log_debug("iobuf_fopen -> %p\n", a->directfp );
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
int
|
||||
iobuf_ioctl ( IOBUF a, int cmd, int intval, void *ptrval )
|
||||
{
|
||||
|
|
|
@ -453,11 +453,13 @@ utf8_to_native( const char *string, size_t length )
|
|||
case '\v': n++; if( p ) *p++ = 'v'; break;
|
||||
case '\b': n++; if( p ) *p++ = 'b'; break;
|
||||
case 0 : n++; if( p ) *p++ = '0'; break;
|
||||
default: n += 3;
|
||||
sprintf( p, "x%02x", *s );
|
||||
if ( p )
|
||||
p += 3;
|
||||
break;
|
||||
default:
|
||||
n += 3;
|
||||
if ( p ) {
|
||||
sprintf( p, "x%02x", *s );
|
||||
p += 3;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue