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

Re: MacVim.app - snapshot r300 - available for download

Expand Messages
  • björn
    ... That was the first thing I tried...but then the multibyte stuff does not seem to get initialized, e.g. typing :digraphs shows nothing. Is this because
    Message 1 of 13 , Oct 9, 2007
    • 0 Attachment
      > > > > I'd suggest hacking enc_locale() to just say something like "if this
      > > > > is OS X, the encoding should be UTF-8".
      > > >
      > > > I would say: If none of the environment variables is defined, then
      > > > default to utf-8. Someone using a shell might want to set those
      > > > variables to tell his programs what he prefers.
      > >
      > > Ok, I've changed the procedure in set_init_1() as follows:
      > >
      > > 1) call enc_locale(). no changes to the enc_locale() code is
      > > done...so this (as far as I understand) checks the "encoding related"
      > > environment variables.
      > >
      > > 2) call mbyte_init() using the encoding returned in 1
      > >
      > > 3) if 2 fails then set p_enc to "utf-8" and call mbyte_init() again
      > >
      > > 4) if 3 fails then use "latin1" (although 3 should never fail)
      > >
      > > This should permit the user to override the environment variables,
      > > whilst defaulting to utf-8. Any comments?
      >
      > Ehm, wouldn't it work to change the value of ENC_DFLT in option.h to
      > "utf-8"? With an #ifdef, of course.

      That was the first thing I tried...but then the multibyte stuff does
      not seem to get initialized, e.g. typing :digraphs shows nothing. Is
      this because mbyte_init() never gets called perhaps?


      /Björn

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