From 46ecc8dcbb724ee36237a34f4dadef79a2c57f38 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Wed, 17 Nov 2021 21:54:49 +0800 Subject: [PATCH] bgl dictionary parse error --- bgl_babylon.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bgl_babylon.cc b/bgl_babylon.cc index 9b808c10..eee70bf4 100644 --- a/bgl_babylon.cc +++ b/bgl_babylon.cc @@ -94,9 +94,6 @@ bool Babylon::open() return false; } - if( fseek( f, i, SEEK_SET ) ) /* can't seek - emulate */ - for(int j=0;j < i - 6;j++) fgetc( f ); - if( ferror( f ) || feof( f ) ) { fclose( f ); @@ -108,14 +105,10 @@ bool Babylon::open() fflush( f ); -#ifdef Q_OS_MAC /* Under Mac OS X the above technique don't set reopen position properly */ int fn = DUP( fileno( f ) ); lseek( fn, i, SEEK_SET ); file = gzdopen( fn, "r" ); -#else - file = gzdopen( DUP( fileno( f ) ), "r" ); -#endif fclose( f );