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

svn update revision 844 fails to build when FEAT_MBYTE is undefined.

Expand Messages
  • Anand Hariharan
    Here is the relevant build log: gui.c: In function gui_screenstr : gui.c:1913: error: enc_utf8 undeclared (first use in this function) gui.c:1913: error:
    Message 1 of 3 , Jan 22, 2008
    • 0 Attachment
      Here is the relevant build log:

      gui.c: In function 'gui_screenstr':
      gui.c:1913: error: 'enc_utf8' undeclared (first use in this function)
      gui.c:1913: error: (Each undeclared identifier is reported only once
      gui.c:1913: error: for each function it appears in.)
      gui.c:1915: error: 'MB_MAXBYTES' undeclared (first use in this
      function)
      gui.c:1924: error: 'ScreenLinesUC' undeclared (first use in this
      function)
      gui.c:1936: error: 'enc_dbcs' undeclared (first use in this function)
      gui.c:1948: error: 'ScreenLines2' undeclared (first use in this
      function)
      gui.c: In function 'gui_redraw_block':
      gui.c:2520: error: 'enc_utf8' undeclared (first use in this function)
      make: *** [objects/gui.o] Error 1


      And the changes I made to feature.h:

      Index: feature.h
      ===================================================================
      --- feature.h (revision 844)
      +++ feature.h (working copy)
      @@ -606,7 +606,7 @@
      * (only when "lang" archive unpacked)
      */
      #ifdef FEAT_NORMAL
      -# define FEAT_MULTI_LANG
      +# undef FEAT_MULTI_LANG
      #endif
      #if defined(HAVE_GETTEXT) && defined(FEAT_MULTI_LANG) \
      && (defined(HAVE_LOCALE_H) || defined(X_LOCALE))
      @@ -623,7 +623,7 @@
      #if (defined(FEAT_BIG) || defined(HAVE_GTK2) || defined(FEAT_ARABIC))
      \
      && !defined(FEAT_MBYTE) && !defined(WIN16) \
      && SIZEOF_INT >= 4 && !defined(EBCDIC)
      -# define FEAT_MBYTE
      +# undef FEAT_MBYTE
      #endif

      /* Define this if you want to use 16 bit Unicode only, reduces memory
      used for
      @@ -650,7 +650,7 @@
      /* Use iconv() when it's available. */
      #if defined(FEAT_MBYTE) && ((defined(HAVE_ICONV_H) &&
      defined(HAVE_ICONV)) \
      || defined(DYNAMIC_ICONV))
      -# define USE_ICONV
      +# undef USE_ICONV
      #endif

      /*


      Would appreciate if folks could let me know if undefining FEAT_MBYTE
      is supported.

      thanks,
      - Anand
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_multibyte" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Bram Moolenaar
      ... GTK 2 is utf-8 based. Thus if you build with GTK 2 you must build with FEAT_MBYTE. -- SOLDIER: Where did you get the coconuts? ARTHUR: Through ... We
      Message 2 of 3 , Jan 22, 2008
      • 0 Attachment
        Anand Hariharan wrote:

        > Here is the relevant build log:
        >
        > gui.c: In function 'gui_screenstr':
        > gui.c:1913: error: 'enc_utf8' undeclared (first use in this function)
        > gui.c:1913: error: (Each undeclared identifier is reported only once
        > gui.c:1913: error: for each function it appears in.)
        > gui.c:1915: error: 'MB_MAXBYTES' undeclared (first use in this
        > function)
        > gui.c:1924: error: 'ScreenLinesUC' undeclared (first use in this
        > function)
        > gui.c:1936: error: 'enc_dbcs' undeclared (first use in this function)
        > gui.c:1948: error: 'ScreenLines2' undeclared (first use in this
        > function)
        > gui.c: In function 'gui_redraw_block':
        > gui.c:2520: error: 'enc_utf8' undeclared (first use in this function)
        > make: *** [objects/gui.o] Error 1
        >
        >
        > And the changes I made to feature.h:
        >
        > Index: feature.h
        > ===================================================================
        > --- feature.h (revision 844)
        > +++ feature.h (working copy)
        > @@ -606,7 +606,7 @@
        > * (only when "lang" archive unpacked)
        > */
        > #ifdef FEAT_NORMAL
        > -# define FEAT_MULTI_LANG
        > +# undef FEAT_MULTI_LANG
        > #endif
        > #if defined(HAVE_GETTEXT) && defined(FEAT_MULTI_LANG) \
        > && (defined(HAVE_LOCALE_H) || defined(X_LOCALE))
        > @@ -623,7 +623,7 @@
        > #if (defined(FEAT_BIG) || defined(HAVE_GTK2) || defined(FEAT_ARABIC))
        > \
        > && !defined(FEAT_MBYTE) && !defined(WIN16) \
        > && SIZEOF_INT >= 4 && !defined(EBCDIC)
        > -# define FEAT_MBYTE
        > +# undef FEAT_MBYTE
        > #endif
        >
        > /* Define this if you want to use 16 bit Unicode only, reduces memory
        > used for
        > @@ -650,7 +650,7 @@
        > /* Use iconv() when it's available. */
        > #if defined(FEAT_MBYTE) && ((defined(HAVE_ICONV_H) &&
        > defined(HAVE_ICONV)) \
        > || defined(DYNAMIC_ICONV))
        > -# define USE_ICONV
        > +# undef USE_ICONV
        > #endif
        >
        > /*
        >
        >
        > Would appreciate if folks could let me know if undefining FEAT_MBYTE
        > is supported.

        GTK 2 is utf-8 based. Thus if you build with GTK 2 you must build with
        FEAT_MBYTE.

        --
        SOLDIER: Where did you get the coconuts?
        ARTHUR: Through ... We found them.
        SOLDIER: Found them? In Mercea. The coconut's tropical!
        "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ download, build and distribute -- http://www.A-A-P.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --~--~---------~--~----~------------~-------~--~----~
        You received this message from the "vim_multibyte" maillist.
        For more information, visit http://www.vim.org/maillist.php
        -~----------~----~----~----~------~----~------~--~---
      • Anand Hariharan
        ... (...) ... Thank you for the prompt reply, Bram. God bless you for your ICCF efforts. sincerely, - Anand
        Message 3 of 3 , Jan 22, 2008
        • 0 Attachment
          On Jan 22, 4:09 pm, Bram Moolenaar <B...@...> wrote:
          > Anand Hariharan wrote:
          (...)
          > > Would appreciate if folks could let me know if undefining FEAT_MBYTE
          > > is supported.
          >
          > GTK 2 is utf-8 based.  Thus if you build with GTK 2 you must build with
          > FEAT_MBYTE.
          >

          Thank you for the prompt reply, Bram. God bless you for your ICCF
          efforts.

          sincerely,
          - Anand
          --~--~---------~--~----~------------~-------~--~----~
          You received this message from the "vim_multibyte" maillist.
          For more information, visit http://www.vim.org/maillist.php
          -~----------~----~----~----~------~----~------~--~---
        Your message has been successfully submitted and would be delivered to recipients shortly.