mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
3.2 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/jimmy/ne/i18n-charcase.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./src/edit.c.orig 2001-09-01 00:32:32.000000000 +0300
  23. +++ ./src/edit.c 2003-06-21 16:08:51.000000000 +0300
  24. @@ -51,7 +51,7 @@
  25. while (b->cur_pos < b->cur_line_desc->line_len && isalpha((unsigned char)b->cur_line_desc->line[b->cur_pos])) {
  26. c = b->cur_line_desc->line[b->cur_pos];
  27. delete_char(b, b->cur_line_desc, b->cur_line, b->cur_pos);
  28. - insert_char(b, b->cur_line_desc, b->cur_line, b->cur_pos, to(c));
  29. + insert_char(b, b->cur_line_desc, b->cur_line, b->cur_pos, to((unsigned char) c));
  30. char_right(b);
  31. }
  32. --- ./src/inputclass.c.orig 2001-09-01 00:32:32.000000000 +0300
  33. +++ ./src/inputclass.c 2003-06-21 16:00:24.000000000 +0300
  34. @@ -357,7 +357,7 @@
  35. /* This vector contains n in the nth entry, except for the lower
  36. case letters, where it contains n-32. */
  37. -const unsigned char up_case[256] = {
  38. +unsigned char up_case[256] = {
  39. 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF,
  40. 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F,
  41. 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F,
  42. --- ./src/ne.c.orig 2001-09-01 00:32:32.000000000 +0300
  43. +++ ./src/ne.c 2003-06-21 15:58:54.000000000 +0300
  44. @@ -107,8 +107,8 @@
  45. /* The main() function. It is responsible for argument parsing, calling
  46. -some terminal and signal initialization functions, and entering the
  47. -event loop. */
  48. +some terminal, signal and vector initialization functions, and entering
  49. +the event loop. */
  50. int main(int argc, char **argv) {
  51. @@ -123,6 +123,9 @@
  52. setlocale(LC_ALL, "");
  53. + /* Correct the up_case vector according to the current locale. */
  54. + for(c=128; c<256; c++) up_case[c] = toupper(c);
  55. +
  56. for(i=1; i<argc; i++) {
  57. /* Special arguments start with two dashes. If we find one, we
  58. --- ./src/ne.h.orig 2001-09-01 00:32:32.000000000 +0300
  59. +++ ./src/ne.h 2003-06-21 16:01:54.000000000 +0300
  60. @@ -436,7 +436,7 @@
  61. /* This vector is a translation table for the regex library which maps
  62. lower case characters to upper case characters. It is also used elsewhere. */
  63. -extern const unsigned char up_case[256];
  64. +extern unsigned char up_case[256];
  65. /* This number defines the macro hash table size. This table can have
  66. conflicts. */