Loading ...
Sorry, an error occurred while loading the content.
 

Japanese dialog button text problem in 6.2b ALPHA (2003 Apr 27)

Expand Messages
  • Kentaro Nakazawa
    Hello, all. It seems that gtk_dialog_add_button(dialog, Japanese string, index) in the 2026th line of gui_gtk.c cannot interpret Japanese. Therefore, the text
    Message 1 of 6 , Apr 30, 2003
      Hello, all.

      It seems that gtk_dialog_add_button(dialog, Japanese string, index) in
      the 2026th line of gui_gtk.c cannot interpret Japanese.
      Therefore, the text of the button on the dialog displayed when two or
      more same files are opened is not displayed.
      The following errors are displayed.

      (gvim:10956): Gtk-WARNING **: Invalid input string

      Other Japanese is displayed.

      --
      Kentaro Nakazawa <kentaro@...>
    • Kentaro Nakazawa
      Sorry. This problem was occurs by Redhat9. configure options: ./configure --with-features=big --enable-multibyte -- Kentaro Nakazawa
      Message 2 of 6 , Apr 30, 2003
        Sorry.

        This problem was occurs by Redhat9.

        configure options:
        ./configure --with-features=big --enable-multibyte

        --
        Kentaro Nakazawa <kentaro@...>
      • Kentaro Nakazawa
        For the time being, it came to be normally displayed by applying the following patches. Index: gui_gtk.c
        Message 3 of 6 , Apr 30, 2003
          For the time being, it came to be normally displayed by applying the
          following patches.

          Index: gui_gtk.c
          ===================================================================
          RCS file: /cvsroot/vim/vim/src/gui_gtk.c,v
          retrieving revision 1.44
          diff -c -r1.44 gui_gtk.c
          *** gui_gtk.c 27 Apr 2003 20:41:06 -0000 1.44
          --- gui_gtk.c 30 Apr 2003 19:03:25 -0000
          ***************
          *** 2023,2029 ****
          else if (button_equal(label, "No")) label = GTK_STOCK_NO;
          else if (button_equal(label, "Cancel")) label =
          GTK_STOCK_CANCEL;
          }
          ! gtk_dialog_add_button(dialog, label, index);
          }

          if (ok != NULL)
          --- 2023,2029 ----
          else if (button_equal(label, "No")) label = GTK_STOCK_NO;
          else if (button_equal(label, "Cancel")) label =
          GTK_STOCK_CANCEL;
          }
          ! gtk_dialog_add_button(dialog, CONVERT_TO_UTF8(label), index);
          }

          if (ok != NULL)


          --
          Kentaro Nakazawa <kentaro@...>
        • Bram Moolenaar
          ... Does this patch help? ... *************** ... } else if (*p == DLG_HOTKEY_CHAR) *p = _ ; + #ifdef FEAT_MBYTE + if (has_mbyte) + p +=
          Message 4 of 6 , Apr 30, 2003
            Kentaro Nakazawa wrote:

            > It seems that gtk_dialog_add_button(dialog, Japanese string, index) in
            > the 2026th line of gui_gtk.c cannot interpret Japanese.
            > Therefore, the text of the button on the dialog displayed when two or
            > more same files are opened is not displayed.
            > The following errors are displayed.
            >
            > (gvim:10956): Gtk-WARNING **: Invalid input string
            >
            > Other Japanese is displayed.

            Does this patch help?

            *** gui_gtk.c.orig Fri Apr 25 19:49:49 2003
            --- gui_gtk.c Wed Apr 30 21:42:42 2003
            ***************
            *** 1900,1905 ****
            --- 1900,1909 ----
            }
            else if (*p == DLG_HOTKEY_CHAR)
            *p = '_';
            + #ifdef FEAT_MBYTE
            + if (has_mbyte)
            + p += (*mb_ptr2len_check)(p) - 1;
            + #endif
            }
            array[count] = NULL; /* currently not relied upon, but doesn't hurt */
            }

            If this doesn't help then I hope someone else can fix this.

            --
            "Computers in the future may weigh no more than 1.5 tons."
            Popular Mechanics, 1949

            /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
            /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
            \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
            \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
          • Kentaro Nakazawa
            The patch was updated. Now, it is thought that this problem was solved. -- Kentaro Nakazawa Index: gui_gtk.c
            Message 5 of 6 , May 1, 2003
              The patch was updated.

              Now, it is thought that this problem was solved.


              --
              Kentaro Nakazawa <kentaro@...>
            • Bram Moolenaar
              ... I can t check this with Japanese, but it looks OK to me. I ll include the patch. Thanks! -- In a world without fences, who needs Gates and Windows? ///
              Message 6 of 6 , May 1, 2003
                Kentaro Nakazawa wrote:

                > The patch was updated.
                >
                > Now, it is thought that this problem was solved.

                I can't check this with Japanese, but it looks OK to me. I'll include
                the patch. Thanks!

                --
                In a world without fences, who needs Gates and Windows?

                /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
                /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
                \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
                \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
              Your message has been successfully submitted and would be delivered to recipients shortly.