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

Re: Patch 6.2.512

Expand Messages
  • Nikolai Weibull
    ... Aha, OK then. nikolai -- ... main(){printf(&linux[ 021%six 012 0 ],(linux)[ have ]+ fun -97);}
    Message 1 of 7 , Apr 28, 2004
      * Bram Moolenaar <Bram@...> [Apr 28, 2004 19:40]:
      > > I don't want to be picky, but wouldn't it be better to create a new
      > > errmsg function that takes varargs so that you could wrap the whole
      > > string in _() and thus the en@quot stuff with gettext will work
      > > correctly, provided that it's added to po/LINGUAS.

      > mch_errmsg() is a special kind of function for writing messages when Vim
      > hasn't finished starting up. smsg() does do the varargs thing, but
      > can't be used here.

      > It's a bit clumsy, but gets the job done. You can't realy change the
      > order of the arguments, the argv[] strings much come last, because they
      > can be very long and may obscure the error text. That's actually a
      > protection against translators that don't know the context.

      Aha, OK then.
      nikolai

      --
      ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
      ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
      ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
      main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
    Your message has been successfully submitted and would be delivered to recipients shortly.