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

Re: Postscript print bug? (in ex_cmds2.c)

Expand Messages
  • Kentaro Nakazawa
    I am sorry. Probably, the following patches will be better. Index: ex_cmds2.c =================================================================== RCS file:
    Message 1 of 3 , Jun 7, 2003
    • 0 Attachment
      I am sorry. Probably, the following patches will be better.


      Index: ex_cmds2.c
      ===================================================================
      RCS file: /cvsroot/vim/vim/src/ex_cmds2.c,v
      retrieving revision 1.65
      diff -c -r1.65 ex_cmds2.c
      *** ex_cmds2.c 29 May 2003 15:29:11 -0000 1.65
      --- ex_cmds2.c 7 Jun 2003 11:58:14 -0000
      ***************
      *** 4811,4817 ****
      /* 'printencoding' not set or not supported - find alternate */
      #ifdef FEAT_MBYTE
      p_encoding = enc_skip(p_enc);
      ! if (!(props & ENC_8BIT)
      || !prt_find_resource((char *)p_encoding, &res_encoding))
      {
      /* 8-bit 'encoding' is not supported */
      --- 4811,4817 ----
      /* 'printencoding' not set or not supported - find alternate */
      #ifdef FEAT_MBYTE
      p_encoding = enc_skip(p_enc);
      ! if ((props & ENC_8BIT)
      || !prt_find_resource((char *)p_encoding, &res_encoding))
      {
      /* 8-bit 'encoding' is not supported */


      --
      Kentaro Nakazawa <kentaro@...>
    • Bram Moolenaar
      ... I m afraid I don t understand what you are trying to solve here. DBCS printing is currently not supported (except for the latin1 part of it). ... --
      Message 2 of 3 , Jun 21, 2003
      • 0 Attachment
        Kentaro Nakazawa wrote:

        > Since my 'encoding' is euc-jp (and 'printencoding' is NUL), although
        > props becomes ENC_DBCS by the 4805th line, if it does so, it will become
        > TRUE, without calling prt_find_resource() by if State of the 4814th line.
        >
        > This is considered not to be meant operation.
        > The following patches are proposed.

        I'm afraid I don't understand what you are trying to solve here. DBCS
        printing is currently not supported (except for the latin1 part of it).

        > Index: ex_cmds2.c
        > ===================================================================
        > RCS file: /cvsroot/vim/vim/src/ex_cmds2.c,v
        > retrieving revision 1.65
        > diff -c -r1.65 ex_cmds2.c
        > *** ex_cmds2.c 29 May 2003 15:29:11 -0000 1.65
        > --- ex_cmds2.c 6 Jun 2003 19:42:03 -0000
        > ***************
        > *** 4812,4818 ****
        > #ifdef FEAT_MBYTE
        > p_encoding = enc_skip(p_enc);
        > if (!(props & ENC_8BIT)
        > ! || !prt_find_resource((char *)p_encoding, &res_encoding))
        > {
        > /* 8-bit 'encoding' is not supported */
        > #endif
        > --- 4812,4818 ----
        > #ifdef FEAT_MBYTE
        > p_encoding = enc_skip(p_enc);
        > if (!(props & ENC_8BIT)
        > ! && !prt_find_resource((char *)p_encoding, &res_encoding))
        > {
        > /* 8-bit 'encoding' is not supported */
        > #endif

        --
        hundred-and-one symptoms of being an internet addict:
        126. You brag to all of your friends about your date Saturday night...but
        you don't tell them it was only in a chat room.

        /// 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.