lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev EBCDIC oversight.


From: pg
Subject: lynx-dev EBCDIC oversight.
Date: Sun, 21 Feb 1999 12:20:16 -0700 (MST)

Oops.  I guess I need to convert not only the "keymap" table
but also the "key_override" table.  Patch attached.

I also removed a couple cryptic comments which I had used to
resynchronize patches prior to integration.  This is at editor's
discretion -- is it unseemly self-aggrandizement to leave my
initials in, or shirking responsibility to remove them?  :-)

And, if someone suggests a better place to perform this transformation,
I'll move the code.

Thanks,
gil
====================================================================
%%% Created Sun Feb 21 12:08:41 MST 1999 by target lynx.patch. %%%
diff -brc orig/lynx2-8-2/src/LYMain.c lynx2-8-2/src/LYMain.c
*** orig/lynx2-8-2/src/LYMain.c Wed Feb 17 07:29:33 1999
--- lynx2-8-2/src/LYMain.c      Sun Feb 21 12:04:26 1999
***************
*** 559,565 ****
      exit(code);
  }
  
! #ifdef  EBCDIC  /* S/390 -- gil -- 1958 */
        char un_IBM1047[ 256 ] = "";
  unsigned char IBM1047[ 256 ] = /* ATOE OEMVS311 */
  {
--- 559,565 ----
      exit(code);
  }
  
! #ifdef  EBCDIC
        char un_IBM1047[ 256 ] = "";
  unsigned char IBM1047[ 256 ] = /* ATOE OEMVS311 */
  {
***************
*** 584,597 ****
  static void FixCharacters(void)
  {
      int c;
!     int work[256];
  
      for (c = 0; c < 256; c++) {
        un_IBM1047[IBM1047[c]] = c;
!       work[c] = keymap[c+1];
      }
!     for (c = 0; c < 256; c++)
!       keymap[IBM1047[c]+1] = work[c];
  }
  #endif /* EBCDIC */
  
--- 584,601 ----
  static void FixCharacters(void)
  {
      int c;
!     int work1[256],
!         work2[256];
  
      for (c = 0; c < 256; c++) {
        un_IBM1047[IBM1047[c]] = c;
!       work1[c] = keymap[c+1];
!       work2[c] = key_override[c+1];
      }
!     for (c = 0; c < 256; c++) {
!       keymap      [IBM1047[c]+1] = work1[c];
!       key_override[IBM1047[c]+1] = work2[c];
!     }
  }
  #endif /* EBCDIC */
  
***************
*** 610,616 ****
      char filename[LY_MAXPATH];
      BOOL LYGetStdinArgs = FALSE;
  
! #ifdef    NOT_ASCII  /* S/390 -- gil -- 2002 */
      FixCharacters();
  #endif /* NOT_ASCII */
  
--- 614,620 ----
      char filename[LY_MAXPATH];
      BOOL LYGetStdinArgs = FALSE;
  
! #ifdef    NOT_ASCII
      FixCharacters();
  #endif /* NOT_ASCII */
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]