]> git.pld-linux.org Git - packages/console-tools.git/blob - console-tools-psfgettable.patch
- updated gettext BR
[packages/console-tools.git] / console-tools-psfgettable.patch
1 --- console-tools-0.3.3/fontfiletools/psfgettable.c.jj  Wed Aug 25 22:58:14 1999
2 +++ console-tools-0.3.3/fontfiletools/psfgettable.c     Mon Mar  6 15:15:42 2000
3 @@ -100,6 +100,7 @@ int main(int argc, char *argv[])
4    int glyph;
5    unicode unichar;
6    int fontlen;
7 +  unsigned char buf[2];
8  
9    miscsetup();
10    
11 @@ -158,8 +159,8 @@ int main(int argc, char *argv[])
12        else
13         fprintf(out, "0x%03x\t", glyph);
14  
15 -      while ( fread(&unichar, sizeof(unicode), 1, in),
16 -             unichar != PSF_SEPARATOR )
17 +      while ( fread(buf, sizeof(buf), 1, in),
18 +             (unichar = buf[0] + 256 * buf[1]) != PSF_SEPARATOR )
19         fprintf(out, " U+%04x", unichar);
20  
21        putc('\n', out);
This page took 0.044714 seconds and 3 git commands to generate.