unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
@ 2009-05-30  8:36 Christoph Conrad
  2009-05-30  9:29 ` Eli Zaretskii
  0 siblings, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-30  8:36 UTC (permalink / raw)
  To: emacs-pretest-bug

Hi!

commands:

- emacs -q --no-site-file
- M-: (setq ps-printer-name "MeinLaserdrucker")
- M-x ps-print-buffer

result in:

=> Emacs 21.4.1: works
=> Emacs 22.2.1: works

=> Emacs 23.0.94.1:

Printer emits page with error message ("---" to separate):

--------------------------------
# ERROR undefined
# OFFENDING COMMAND: 841,8897637795276

# STACK

/LandscapePageHeight

# ERRORINFO:
--------------------------------





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-30  8:36 bug#3420: 23.0.94; Printing error on HP Laserjet 6L Christoph Conrad
@ 2009-05-30  9:29 ` Eli Zaretskii
  2009-05-31  0:35   ` Christoph Conrad
  0 siblings, 1 reply; 21+ messages in thread
From: Eli Zaretskii @ 2009-05-30  9:29 UTC (permalink / raw)
  To: Christoph Conrad, 3420

> From: Christoph Conrad <christoph.conrad@gmx.de>
> Date: Sat, 30 May 2009 10:36:39 +0200
> Cc: 
> 
> - emacs -q --no-site-file
> - M-: (setq ps-printer-name "MeinLaserdrucker")
> - M-x ps-print-buffer
> 
> result in:
> 
> => Emacs 21.4.1: works
> => Emacs 22.2.1: works
> 
> => Emacs 23.0.94.1:
> 
> Printer emits page with error message ("---" to separate):
> 
> --------------------------------
> # ERROR undefined
> # OFFENDING COMMAND: 841,8897637795276
> 
> # STACK
> 
> /LandscapePageHeight
> 
> # ERRORINFO:
> --------------------------------

Can you invoke ps-print-buffer with C-u to print to a file from each
of the Emacs versions, and then diff them and post the results here?





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-30  9:29 ` Eli Zaretskii
@ 2009-05-31  0:35   ` Christoph Conrad
  2009-05-31  4:06     ` Jason Rumney
  0 siblings, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31  0:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3420

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

Hi Eli,

> Can you invoke ps-print-buffer with C-u to print to a file from each
> of the Emacs versions, and then diff them and post the results here?

Sure. See below. It seems that in e23 in the generated postscript code
several numerical values use a ',' as decimal separator, in e21 or e22
it is a '.' which is correct in postscript. The first of that values is
with /LandscapePageHeight.

e22: /LandscapePageHeight 841.8897637795276 def
e23: /LandscapePageHeight 841,8897637795276 def

I used exactly the same environment for the three emacsen.

Regards,
Christoph


[-- Attachment #2: diff-e21-e23.txt --]
[-- Type: text/plain, Size: 7507 bytes --]

3,4c3,5
< %%Creator: Christoph Conrad (using ps-print v6.5.5)
< %%CreationDate: 02:29:10 Mai 31 2009
---
> %%Creator: ps-print v7.3.4
> %%For: Christoph Conrad
> %%CreationDate: 02:30:43 Mai 31 2009
13c14,15
< %%DocumentMedia: Letter 612 792 0 () ()
---
> %%DocumentSuppliedResources: procset PSPrintUserDefinedPrologue-cc 0 0
> %%DocumentMedia: A4 595 842 0 () ()
19c21
< %%PageMedia: Letter
---
> %%PageMedia: A4
30,31c32,34
< % Copyright (C) 2000, 2001  Free Software Foundation, Inc.
< %
---
> % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
> %   Free Software Foundation, Inc.
> 
33,34c36,37
< %
< % GNU Emacs is free software; you can redistribute it and/or modify
---
> 
> % GNU Emacs is free software: you can redistribute it and/or modify
36,38c39,41
< % the Free Software Foundation; either version 2, or (at your option)
< % any later version.
< %
---
> % the Free Software Foundation, either version 3 of the License, or
> % (at your option) any later version.
> 
43c46
< %
---
> 
45,47c48
< % along with GNU Emacs; see the file COPYING.  If not, write to the
< % Free Software Foundation, Inc., 59 Temple Place - Suite 330,
< % Boston, MA 02111-1307, USA.
---
> % along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
58a60
> 
187c189
< %%BeginProcSet: UserDefinedPrologue
---
> %%BeginResource: procset PSPrintUserDefinedPrologue-cc 0 0
190c192
< %%EndProcSet
---
> %%EndResource
195,206c197,208
< /LandscapePageHeight 792.0 def
< /PrintPageWidth      498.6141732283465 def
< /PrintWidth   498.6141732283465 def
< /PrintHeight  643.7029732283465 def
< /LeftMargin   56.69291338582677 def
< /RightMargin  56.69291338582677 def
< /InterColumn  56.69291338582677 def
< /BottomMargin 42.51968503937008 def
< /TopMargin    42.51968503937008 def
< /HeaderOffset 28.346456692913385 def
< /HeaderPad    2.4276 def
< /FooterOffset 28.346456692913385 def
---
> /LandscapePageHeight 841,8897637795276 def
> /PrintPageWidth      451,27559055118104 def
> /PrintWidth   451,27559055118104 def
> /PrintHeight  705,2897637795276 def
> /LeftMargin   72.0 def
> /RightMargin  72.0 def
> /InterColumn  72.0 def
> /BottomMargin 36.0 def
> /TopMargin    36.0 def
> /HeaderOffset 36.0 def
> /HeaderPad    0.0 def
> /FooterOffset 36.0 def
214c216
< /HeaderFrameProperties [0.000 0.900 0.400 0.000 0.000 ]def
---
> /HeaderFrameProperties [0,000 0,000 0,000 0,000 0,000 ]def
217c219
< /FooterFrameProperties [0.000 0.900 0.400 0.000 0.000 ]def
---
> /FooterFrameProperties [0,000 0,000 0,000 0,000 0,000 ]def
220,221c222,223
< /LineHeight       8.967500000000001 def
< /LinesPerColumn   72 def
---
> /LineHeight       8.0 def
> /LinesPerColumn   88 def
229c231
< /LineNumberColor  [0.000 0.000 0.000] def
---
> /LineNumberColor  [0,000 0,000 0,000] def
231,232c233,234
< /ZebraColor       0.950 def
< /BackgroundColor  [1.000 1.000 1.000] def
---
> /ZebraColor       0,000 def
> /BackgroundColor  [1,000 1,000 1,000] def
243c245
< /N-Up-Margin    28.346456692913385 def
---
> /N-Up-Margin    36.0 def
254c256,259
< % version: 6.0
---
> % version: 6.1
> 
> % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
> %   Free Software Foundation, Inc.
256,257d260
< % Copyright (C) 2000, 2001  Free Software Foundation, Inc.
< %
259,260c262,263
< %
< % GNU Emacs is free software; you can redistribute it and/or modify
---
> 
> % GNU Emacs is free software: you can redistribute it and/or modify
262,264c265,267
< % the Free Software Foundation; either version 2, or (at your option)
< % any later version.
< %
---
> % the Free Software Foundation, either version 3 of the License, or
> % (at your option) any later version.
> 
269c272
< %
---
> 
271,273c274
< % along with GNU Emacs; see the file COPYING.  If not, write to the
< % Free Software Foundation, Inc., 59 Temple Place - Suite 330,
< % Boston, MA 02111-1307, USA.
---
> % along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
284a286
> 
682a685,686
>     /LHg LineHeight 0.65 mul def
>     /PHg PrintHeight LHg add def
686c690
<      0 LineHeight 0.65 mul rmoveto
---
>      0 LHg rmoveto
688c692
<      0 PrintHeight neg rlineto
---
>      0 PHg neg rlineto
690c694
<      0 PrintHeight rlineto
---
>      0 PHg rlineto
1004a1009,1011
> /HeaderClip{HeaderFrameStart moveto HeaderFramePath clip}def
> /FooterClip{FooterFrameStart moveto FooterFramePath clip}def
> 
1056a1064
>   gsave HeaderClip
1060a1069
>   grestore
1063a1073
>   gsave FooterClip
1067a1078
>   grestore
1121a1133,1145
> 
> %%EndProlog
> 
> %%BeginSetup
> 
> %%IncludeResource: font Times-Roman
> %%IncludeResource: font Times-Italic
> %%IncludeResource: font Courier
> %%IncludeResource: font Courier-Bold
> %%IncludeResource: font Courier-Oblique
> %%IncludeResource: font Courier-BoldOblique
> %%IncludeResource: font Helvetica
> %%IncludeResource: font Helvetica-Bold
1143,1151c1167,1171
< /f0 8.5(Courier)cvn DefFont
< /f1 8.5(Courier-Bold)cvn DefFont
< /f2 8.5(Courier-Oblique)cvn DefFont
< /f3 8.5(Courier-BoldOblique)cvn DefFont
< /SpaceWidthRatio 0.600000 def
< 
< %%EndProlog
< 
< %%BeginSetup
---
> /f0 8.0(Courier)cvn DefFont
> /f1 8.0(Courier-Bold)cvn DefFont
> /f2 8.0(Courier-Oblique)cvn DefFont
> /f3 8.0(Courier-BoldOblique)cvn DefFont
> /SpaceWidthRatio 0,600000 def
1156a1177,1254
> %%%% Start of Mule Section
> 
> /Latin1Encoding {	% newname fontname  |  font
>     findfont dup length dict begin
> 	{ 1 index /FID ne { def } { pop pop } ifelse } forall
>         /Encoding ISOLatin1Encoding def
> 	currentdict
>     end
>     definefont
> } bind def
> 
> %% Redefine fonts for multiple charsets.
> /ReDefFont {		     % fontname encoding fdepvector size  |  -
>   20 dict begin
>   3 index findfont {
>     1 index /FID ne 2 index /UniqueID ne and {def} {pop pop} ifelse
>   } forall
>   /FontType 0 def
>   /FMapType 3 def
>   /EscChar 0 def
>   % FontMatrix ::= [ size 0 0 size 0 0 ]
>   /FontMatrix exch [ exch dup 0 exch 0 exch 0 0 ] def
>   /FDepVector exch def
>   /Encoding exch def
>   currentdict
>   end			% fontname dic
>   definefont pop
> } bind def
> 
> /EscChar 0 def
> 
> %% End of Mule Section
> 
> /F00 /Courier findfont def
> /ETOP0 256 array def
> 0 1 255 { ETOP0 exch 0 put } for
> ETOP0 0 0 put
> /VTOP0 [F00] def
> /ETOP1 256 array def
> 0 1 255 { ETOP1 exch 0 put } for
> ETOP1 0 0 put
> /VTOP1 [F00] def
> /ETOP2 256 array def
> 0 1 255 { ETOP2 exch 0 put } for
> ETOP2 0 0 put
> /VTOP2 [F00] def
> /ETOP3 256 array def
> 0 1 255 { ETOP3 exch 0 put } for
> ETOP3 0 0 put
> /VTOP3 [F00] def
> /Vh0 [ VTOP1 aload pop ] def
> 
> Vh0 0 /Helvetica-Bold-latin1 /Helvetica-Bold Latin1Encoding put
> /h0 ETOP1 Vh0 14,000000 ReDefFont
> /Vh1 [ VTOP0 aload pop ] def
> 
> Vh1 0 /Helvetica-latin1 /Helvetica Latin1Encoding put
> /h1 ETOP0 Vh1 12,000000 ReDefFont
> /VH0 [ VTOP0 aload pop ] def
> 
> VH0 0 /Helvetica-latin1 /Helvetica Latin1Encoding put
> /H0 ETOP0 VH0 12,000000 ReDefFont
> /Vf0 [ VTOP0 aload pop ] def
> 
> Vf0 0 /Courier-latin1 /Courier Latin1Encoding put
> /f0 ETOP0 Vf0 8,000000 ReDefFont
> /Vf1 [ VTOP1 aload pop ] def
> 
> Vf1 0 /Courier-Bold-latin1 /Courier-Bold Latin1Encoding put
> /f1 ETOP1 Vf1 8,000000 ReDefFont
> /Vf2 [ VTOP2 aload pop ] def
> 
> Vf2 0 /Courier-Oblique-latin1 /Courier-Oblique Latin1Encoding put
> /f2 ETOP2 Vf2 8,000000 ReDefFont
> /Vf3 [ VTOP3 aload pop ] def
> 
> Vf3 0 /Courier-BoldOblique-latin1 /Courier-BoldOblique Latin1Encoding put
> /f3 ETOP3 Vf3 8,000000 ReDefFont
1179c1277
< 0.000 0.000 0.000 FG
---
> 0,000 0,000 0,000 FG

[-- Attachment #3: diff-e22-e23.txt --]
[-- Type: text/plain, Size: 6063 bytes --]

3c3
< %%Creator: ps-print v6.7.6
---
> %%Creator: ps-print v7.3.4
5c5
< %%CreationDate: 02:29:55 Mai 31 2009
---
> %%CreationDate: 02:30:43 Mai 31 2009
32c32
< % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
---
> % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
34c34
< %
---
> 
36,37c36,37
< %
< % GNU Emacs is free software; you can redistribute it and/or modify
---
> 
> % GNU Emacs is free software: you can redistribute it and/or modify
39,41c39,41
< % the Free Software Foundation; either version 3, or (at your option)
< % any later version.
< %
---
> % the Free Software Foundation, either version 3 of the License, or
> % (at your option) any later version.
> 
46c46
< %
---
> 
48,50c48
< % along with GNU Emacs; see the file COPYING.  If not, write to the
< % Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
< % Boston, MA 02110-1301, USA.
---
> % along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
199,210c197,208
< /LandscapePageHeight 841.8897637795276 def
< /PrintPageWidth      481.8897637795275 def
< /PrintWidth   481.8897637795275 def
< /PrintHeight  693.5927370078741 def
< /LeftMargin   56.69291338582677 def
< /RightMargin  56.69291338582677 def
< /InterColumn  56.69291338582677 def
< /BottomMargin 42.51968503937008 def
< /TopMargin    42.51968503937008 def
< /HeaderOffset 28.346456692913385 def
< /HeaderPad    2.4276 def
< /FooterOffset 28.346456692913385 def
---
> /LandscapePageHeight 841,8897637795276 def
> /PrintPageWidth      451,27559055118104 def
> /PrintWidth   451,27559055118104 def
> /PrintHeight  705,2897637795276 def
> /LeftMargin   72.0 def
> /RightMargin  72.0 def
> /InterColumn  72.0 def
> /BottomMargin 36.0 def
> /TopMargin    36.0 def
> /HeaderOffset 36.0 def
> /HeaderPad    0.0 def
> /FooterOffset 36.0 def
218c216
< /HeaderFrameProperties [0.000 0.900 0.400 0.000 0.000 ]def
---
> /HeaderFrameProperties [0,000 0,000 0,000 0,000 0,000 ]def
221c219
< /FooterFrameProperties [0.000 0.900 0.400 0.000 0.000 ]def
---
> /FooterFrameProperties [0,000 0,000 0,000 0,000 0,000 ]def
224,225c222,223
< /LineHeight       8.967500000000001 def
< /LinesPerColumn   78 def
---
> /LineHeight       8.0 def
> /LinesPerColumn   88 def
233c231
< /LineNumberColor  [0.000 0.000 0.000] def
---
> /LineNumberColor  [0,000 0,000 0,000] def
235,236c233,234
< /ZebraColor       0.950 def
< /BackgroundColor  [1.000 1.000 1.000] def
---
> /ZebraColor       0,000 def
> /BackgroundColor  [1,000 1,000 1,000] def
247c245
< /N-Up-Margin    28.346456692913385 def
---
> /N-Up-Margin    36.0 def
260c258
< % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
---
> % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
262c260
< %
---
> 
264,265c262,263
< %
< % GNU Emacs is free software; you can redistribute it and/or modify
---
> 
> % GNU Emacs is free software: you can redistribute it and/or modify
267,269c265,267
< % the Free Software Foundation; either version 3, or (at your option)
< % any later version.
< %
---
> % the Free Software Foundation, either version 3 of the License, or
> % (at your option) any later version.
> 
274c272
< %
---
> 
276,278c274
< % along with GNU Emacs; see the file COPYING.  If not, write to the
< % Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
< % Boston, MA 02110-1301, USA.
---
> % along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
1171,1175c1167,1171
< /f0 8.5(Courier)cvn DefFont
< /f1 8.5(Courier-Bold)cvn DefFont
< /f2 8.5(Courier-Oblique)cvn DefFont
< /f3 8.5(Courier-BoldOblique)cvn DefFont
< /SpaceWidthRatio 0.600000 def
---
> /f0 8.0(Courier)cvn DefFont
> /f1 8.0(Courier-Bold)cvn DefFont
> /f2 8.0(Courier-Oblique)cvn DefFont
> /f3 8.0(Courier-BoldOblique)cvn DefFont
> /SpaceWidthRatio 0,600000 def
1180a1177,1254
> %%%% Start of Mule Section
> 
> /Latin1Encoding {	% newname fontname  |  font
>     findfont dup length dict begin
> 	{ 1 index /FID ne { def } { pop pop } ifelse } forall
>         /Encoding ISOLatin1Encoding def
> 	currentdict
>     end
>     definefont
> } bind def
> 
> %% Redefine fonts for multiple charsets.
> /ReDefFont {		     % fontname encoding fdepvector size  |  -
>   20 dict begin
>   3 index findfont {
>     1 index /FID ne 2 index /UniqueID ne and {def} {pop pop} ifelse
>   } forall
>   /FontType 0 def
>   /FMapType 3 def
>   /EscChar 0 def
>   % FontMatrix ::= [ size 0 0 size 0 0 ]
>   /FontMatrix exch [ exch dup 0 exch 0 exch 0 0 ] def
>   /FDepVector exch def
>   /Encoding exch def
>   currentdict
>   end			% fontname dic
>   definefont pop
> } bind def
> 
> /EscChar 0 def
> 
> %% End of Mule Section
> 
> /F00 /Courier findfont def
> /ETOP0 256 array def
> 0 1 255 { ETOP0 exch 0 put } for
> ETOP0 0 0 put
> /VTOP0 [F00] def
> /ETOP1 256 array def
> 0 1 255 { ETOP1 exch 0 put } for
> ETOP1 0 0 put
> /VTOP1 [F00] def
> /ETOP2 256 array def
> 0 1 255 { ETOP2 exch 0 put } for
> ETOP2 0 0 put
> /VTOP2 [F00] def
> /ETOP3 256 array def
> 0 1 255 { ETOP3 exch 0 put } for
> ETOP3 0 0 put
> /VTOP3 [F00] def
> /Vh0 [ VTOP1 aload pop ] def
> 
> Vh0 0 /Helvetica-Bold-latin1 /Helvetica-Bold Latin1Encoding put
> /h0 ETOP1 Vh0 14,000000 ReDefFont
> /Vh1 [ VTOP0 aload pop ] def
> 
> Vh1 0 /Helvetica-latin1 /Helvetica Latin1Encoding put
> /h1 ETOP0 Vh1 12,000000 ReDefFont
> /VH0 [ VTOP0 aload pop ] def
> 
> VH0 0 /Helvetica-latin1 /Helvetica Latin1Encoding put
> /H0 ETOP0 VH0 12,000000 ReDefFont
> /Vf0 [ VTOP0 aload pop ] def
> 
> Vf0 0 /Courier-latin1 /Courier Latin1Encoding put
> /f0 ETOP0 Vf0 8,000000 ReDefFont
> /Vf1 [ VTOP1 aload pop ] def
> 
> Vf1 0 /Courier-Bold-latin1 /Courier-Bold Latin1Encoding put
> /f1 ETOP1 Vf1 8,000000 ReDefFont
> /Vf2 [ VTOP2 aload pop ] def
> 
> Vf2 0 /Courier-Oblique-latin1 /Courier-Oblique Latin1Encoding put
> /f2 ETOP2 Vf2 8,000000 ReDefFont
> /Vf3 [ VTOP3 aload pop ] def
> 
> Vf3 0 /Courier-BoldOblique-latin1 /Courier-BoldOblique Latin1Encoding put
> /f3 ETOP3 Vf3 8,000000 ReDefFont
1203c1277
< 0.000 0.000 0.000 FG
---
> 0,000 0,000 0,000 FG

[-- Attachment #4: diff-e21-e22.txt --]
[-- Type: text/plain, Size: 3104 bytes --]

3,4c3,5
< %%Creator: Christoph Conrad (using ps-print v6.5.5)
< %%CreationDate: 02:29:10 Mai 31 2009
---
> %%Creator: ps-print v6.7.6
> %%For: Christoph Conrad
> %%CreationDate: 02:29:55 Mai 31 2009
13c14,15
< %%DocumentMedia: Letter 612 792 0 () ()
---
> %%DocumentSuppliedResources: procset PSPrintUserDefinedPrologue-cc 0 0
> %%DocumentMedia: A4 595 842 0 () ()
19c21
< %%PageMedia: Letter
---
> %%PageMedia: A4
30c32,33
< % Copyright (C) 2000, 2001  Free Software Foundation, Inc.
---
> % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
> %   Free Software Foundation, Inc.
36c39
< % the Free Software Foundation; either version 2, or (at your option)
---
> % the Free Software Foundation; either version 3, or (at your option)
46,47c49,50
< % Free Software Foundation, Inc., 59 Temple Place - Suite 330,
< % Boston, MA 02111-1307, USA.
---
> % Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
> % Boston, MA 02110-1301, USA.
58a62
> 
187c191
< %%BeginProcSet: UserDefinedPrologue
---
> %%BeginResource: procset PSPrintUserDefinedPrologue-cc 0 0
190c194
< %%EndProcSet
---
> %%EndResource
195,198c199,202
< /LandscapePageHeight 792.0 def
< /PrintPageWidth      498.6141732283465 def
< /PrintWidth   498.6141732283465 def
< /PrintHeight  643.7029732283465 def
---
> /LandscapePageHeight 841.8897637795276 def
> /PrintPageWidth      481.8897637795275 def
> /PrintWidth   481.8897637795275 def
> /PrintHeight  693.5927370078741 def
221c225
< /LinesPerColumn   72 def
---
> /LinesPerColumn   78 def
254c258
< % version: 6.0
---
> % version: 6.1
256c260,261
< % Copyright (C) 2000, 2001  Free Software Foundation, Inc.
---
> % Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
> %   Free Software Foundation, Inc.
262c267
< % the Free Software Foundation; either version 2, or (at your option)
---
> % the Free Software Foundation; either version 3, or (at your option)
272,273c277,278
< % Free Software Foundation, Inc., 59 Temple Place - Suite 330,
< % Boston, MA 02111-1307, USA.
---
> % Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
> % Boston, MA 02110-1301, USA.
284a290
> 
682a689,690
>     /LHg LineHeight 0.65 mul def
>     /PHg PrintHeight LHg add def
686c694
<      0 LineHeight 0.65 mul rmoveto
---
>      0 LHg rmoveto
688c696
<      0 PrintHeight neg rlineto
---
>      0 PHg neg rlineto
690c698
<      0 PrintHeight rlineto
---
>      0 PHg rlineto
1004a1013,1015
> /HeaderClip{HeaderFrameStart moveto HeaderFramePath clip}def
> /FooterClip{FooterFrameStart moveto FooterFramePath clip}def
> 
1056a1068
>   gsave HeaderClip
1060a1073
>   grestore
1063a1077
>   gsave FooterClip
1067a1082
>   grestore
1121a1137,1149
> 
> %%EndProlog
> 
> %%BeginSetup
> 
> %%IncludeResource: font Times-Roman
> %%IncludeResource: font Times-Italic
> %%IncludeResource: font Courier
> %%IncludeResource: font Courier-Bold
> %%IncludeResource: font Courier-Oblique
> %%IncludeResource: font Courier-BoldOblique
> %%IncludeResource: font Helvetica
> %%IncludeResource: font Helvetica-Bold
1149,1152d1176
< %%EndProlog
< 
< %%BeginSetup
< 

^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31  0:35   ` Christoph Conrad
@ 2009-05-31  4:06     ` Jason Rumney
  2009-05-31  6:16       ` Christoph Conrad
  0 siblings, 1 reply; 21+ messages in thread
From: Jason Rumney @ 2009-05-31  4:06 UTC (permalink / raw)
  To: Christoph Conrad, 3420

Christoph Conrad wrote:
> Sure. See below. It seems that in e23 in the generated postscript code
> several numerical values use a ',' as decimal separator, in e21 or e22
> it is a '.' which is correct in postscript. The first of that values is
> with /LandscapePageHeight.
>   

What does the following produce? (paste it into *scratch* and press C-j 
to evaluate and print the result)

(format "%s" 1.1)


I can't get this to output anything other than 1.1 myself, but I may be 
missing something in the configuration of my environment that influences it.






^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31  4:06     ` Jason Rumney
@ 2009-05-31  6:16       ` Christoph Conrad
  2009-05-31 10:03         ` Eli Zaretskii
  0 siblings, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31  6:16 UTC (permalink / raw)
  To: Jason Rumney; +Cc: 3420

Hi Jason,

> (format "%s" 1.1)

Emacs 22.2.1:    "1.1"
Emacs 23.0.94.1: "1.0"

I am a software developer and also able to use the emacs lisp debugger.
So if you instruct me where to look i can also give more detailed
information.

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31  6:16       ` Christoph Conrad
@ 2009-05-31 10:03         ` Eli Zaretskii
  2009-05-31 10:19           ` Christoph Conrad
                             ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Eli Zaretskii @ 2009-05-31 10:03 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

> From: Christoph Conrad <christoph.conrad@gmx.de>
> Cc: 3420@emacsbugs.donarmstrong.com,  Eli Zaretskii <eliz@gnu.org>
> Date: Sun, 31 May 2009 08:16:14 +0200
> 
> Hi Jason,
> 
> > (format "%s" 1.1)
> 
> Emacs 22.2.1:    "1.1"
> Emacs 23.0.94.1: "1.0"

??? Really?  In my Emacs 23.0.94 it produces "1.1".  "1.0" is in
itself a bug, not sure if it can be related to the original problem or
not.

> I am a software developer and also able to use the emacs lisp debugger.
> So if you instruct me where to look i can also give more detailed
> information.

I suspect some locale-related problem, whereby a decimal point is
printed as a comma.  Can you change the Windows locale (this _is_
Windows, right?) to ENU and see if that makes the problem go away?

Alternatively, look through ps-print.el, find where it produces the
lines that differ, and try debugging to find out where does the comma
come from.

Thanks.





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:03         ` Eli Zaretskii
@ 2009-05-31 10:19           ` Christoph Conrad
  2009-05-31 11:05             ` Eli Zaretskii
  2009-05-31 12:21             ` Andreas Schwab
  2009-05-31 10:41           ` Christoph Conrad
  2009-05-31 10:57           ` Christoph Conrad
  2 siblings, 2 replies; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31 10:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3420

Hi Eli,

> ??? Really?

Yes.

> "1.0" is in itself a bug

Yes.

> I suspect some locale-related problem, whereby a decimal point is
> printed as a comma. Can you change the Windows locale (this _is_
> Windows, right?) to ENU and see if that makes the problem go away?

It is kubuntu 09.04.

LANG=de_DE.utf8 emacs -q --no-site-file  ==> 1.0
LANG=en_US.utf-8 emacs -q --no-site-file ==> 1.1

Mhmm - as you said - strange. Can you reproduce this using my locale
setting?

At least i have a workaround now.

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:03         ` Eli Zaretskii
  2009-05-31 10:19           ` Christoph Conrad
@ 2009-05-31 10:41           ` Christoph Conrad
  2009-05-31 16:36             ` James Cloos
  2009-05-31 10:57           ` Christoph Conrad
  2 siblings, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31 10:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3420

Hi Eli,

some information i deleted from the original report about the build from
the emacs 23.0.94 tarball using ./configure && make && sudo make install.

In GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-05-30 on brabbelbox
Windowing system distributor `The X.Org Foundation', version 11.0.10600000
configured using `configure  'CC=gcc''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:03         ` Eli Zaretskii
  2009-05-31 10:19           ` Christoph Conrad
  2009-05-31 10:41           ` Christoph Conrad
@ 2009-05-31 10:57           ` Christoph Conrad
  2009-05-31 11:06             ` Eli Zaretskii
  2 siblings, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31 10:57 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3420

Hi Eli,

LANG=de_DE.utf8 emacs -q --no-site-file  
==> 
"," in numbers in C-u ps-print-buffer


LANG=en_US.utf-8 emacs -q --no-site-file
==> 
correct output in C-u ps-print-buffer

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:19           ` Christoph Conrad
@ 2009-05-31 11:05             ` Eli Zaretskii
  2009-05-31 12:21             ` Andreas Schwab
  1 sibling, 0 replies; 21+ messages in thread
From: Eli Zaretskii @ 2009-05-31 11:05 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

> From: Christoph Conrad <christoph.conrad@gmx.de>
> Cc: jasonr@gnu.org,  3420@emacsbugs.donarmstrong.com
> Date: Sun, 31 May 2009 12:19:36 +0200
> 
> > I suspect some locale-related problem, whereby a decimal point is
> > printed as a comma. Can you change the Windows locale (this _is_
> > Windows, right?) to ENU and see if that makes the problem go away?
> 
> It is kubuntu 09.04.
> 
> LANG=de_DE.utf8 emacs -q --no-site-file  ==> 1.0
> LANG=en_US.utf-8 emacs -q --no-site-file ==> 1.1
> 
> Mhmm - as you said - strange. Can you reproduce this using my locale
> setting?

Not on this machine:

   Linux fencepost 2.6.16.29-xen #1 SMP Wed Dec 6 07:32:36 EST 2006 x86_64 GNU/Linux

I get "1.1" with LANG=de_DE.utf8 as well.





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:57           ` Christoph Conrad
@ 2009-05-31 11:06             ` Eli Zaretskii
  2009-05-31 15:37               ` Christoph Conrad
  0 siblings, 1 reply; 21+ messages in thread
From: Eli Zaretskii @ 2009-05-31 11:06 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

> From: Christoph Conrad <christoph.conrad@gmx.de>
> Cc: jasonr@gnu.org,  3420@emacsbugs.donarmstrong.com
> Date: Sun, 31 May 2009 12:57:52 +0200
> 
> Hi Eli,
> 
> LANG=de_DE.utf8 emacs -q --no-site-file  
> ==> 
> "," in numbers in C-u ps-print-buffer
> 
> 
> LANG=en_US.utf-8 emacs -q --no-site-file
> ==> 
> correct output in C-u ps-print-buffer

Can you spot which Emacs primitive or subroutine produces the comma
separators?

I think ps-print should never use localized decimals, does anyone
thinks otherwise?





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:19           ` Christoph Conrad
  2009-05-31 11:05             ` Eli Zaretskii
@ 2009-05-31 12:21             ` Andreas Schwab
  2009-05-31 12:37               ` Eli Zaretskii
  2009-05-31 15:39               ` Christoph Conrad
  1 sibling, 2 replies; 21+ messages in thread
From: Andreas Schwab @ 2009-05-31 12:21 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

Christoph Conrad <christoph.conrad@gmx.de> writes:

> It is kubuntu 09.04.
>
> LANG=de_DE.utf8 emacs -q --no-site-file  ==> 1.0
> LANG=en_US.utf-8 emacs -q --no-site-file ==> 1.1

Looks like the setlocale call in emacs.c:fixup_locale is not working.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 12:21             ` Andreas Schwab
@ 2009-05-31 12:37               ` Eli Zaretskii
  2009-05-31 14:08                 ` Andreas Schwab
  2009-05-31 15:39               ` Christoph Conrad
  1 sibling, 1 reply; 21+ messages in thread
From: Eli Zaretskii @ 2009-05-31 12:37 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 3420, christoph.conrad

> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: 3420@emacsbugs.donarmstrong.com,  Eli Zaretskii <eliz@gnu.org>
> Date: Sun, 31 May 2009 14:21:24 +0200
> 
> Christoph Conrad <christoph.conrad@gmx.de> writes:
> 
> > It is kubuntu 09.04.
> >
> > LANG=de_DE.utf8 emacs -q --no-site-file  ==> 1.0
> > LANG=en_US.utf-8 emacs -q --no-site-file ==> 1.1
> 
> Looks like the setlocale call in emacs.c:fixup_locale is not working.

You didn't mean it was Emacs's fault, right?  Because emacs.c didn't
change a bit since 23.0.92.





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 12:37               ` Eli Zaretskii
@ 2009-05-31 14:08                 ` Andreas Schwab
  0 siblings, 0 replies; 21+ messages in thread
From: Andreas Schwab @ 2009-05-31 14:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3420, christoph.conrad

Eli Zaretskii <eliz@gnu.org> writes:

> You didn't mean it was Emacs's fault, right?

I have no idea.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 11:06             ` Eli Zaretskii
@ 2009-05-31 15:37               ` Christoph Conrad
  0 siblings, 0 replies; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31 15:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 3420

Hi Eli,

> Can you spot which Emacs primitive or subroutine produces the comma
> separators?

float_to_string() in print.c, the line:

sprintf (buf, "%.*g", width, data);

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 12:21             ` Andreas Schwab
  2009-05-31 12:37               ` Eli Zaretskii
@ 2009-05-31 15:39               ` Christoph Conrad
  2009-05-31 15:52                 ` Andreas Schwab
  1 sibling, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31 15:39 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 3420

Hi Andreas,

> Looks like the setlocale call in emacs.c:fixup_locale is not working.

In float_to_string the lisp object used conatins 1.0, not 1.1. So i
assume that the error with the number conversion happens when converting
the string "1.1" to the float lisp object.

Has anyone a hint where this happens?

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 15:39               ` Christoph Conrad
@ 2009-05-31 15:52                 ` Andreas Schwab
  0 siblings, 0 replies; 21+ messages in thread
From: Andreas Schwab @ 2009-05-31 15:52 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

Christoph Conrad <christoph.conrad@gmx.de> writes:

> Has anyone a hint where this happens?

Look for atof in lread.c.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 10:41           ` Christoph Conrad
@ 2009-05-31 16:36             ` James Cloos
  2009-05-31 19:08               ` Christoph Conrad
  0 siblings, 1 reply; 21+ messages in thread
From: James Cloos @ 2009-05-31 16:36 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

>   value of $LANG: de_DE.utf8

That really ought to be „de_DE.UTF-8“.

It would be interesting to know whether that makes a difference.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 16:36             ` James Cloos
@ 2009-05-31 19:08               ` Christoph Conrad
  2009-06-01 11:34                 ` James Cloos
  0 siblings, 1 reply; 21+ messages in thread
From: Christoph Conrad @ 2009-05-31 19:08 UTC (permalink / raw)
  To: James Cloos; +Cc: 3420

Hallo James,

>> value of $LANG: de_DE.utf8
> That really ought to be „de_DE.UTF-8“.

> It would be interesting to know whether that makes a difference.

No, it makes no difference, both errors persist.

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-05-31 19:08               ` Christoph Conrad
@ 2009-06-01 11:34                 ` James Cloos
  2009-06-01 12:12                   ` Christoph Conrad
  0 siblings, 1 reply; 21+ messages in thread
From: James Cloos @ 2009-06-01 11:34 UTC (permalink / raw)
  To: Christoph Conrad; +Cc: 3420

>> That really ought to be „de_DE.UTF-8“.

>> It would be interesting to know whether that makes a difference.

> No, it makes no difference, both errors persist.

I tried it on a debian sid box, using the version of emacs-cvs available
from the deb archive at http://emacs.orebokech.com and was unable to
duplicate.

(The splash screen says:

GNU Emacs 23.0.94.1 (x86_64-pc-linux-gnu)
 of 2009-05-25 on elegiac, modified by Debian
Copyright (C) 2009 Free Software Foundation, Inc.
)

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6





^ permalink raw reply	[flat|nested] 21+ messages in thread

* bug#3420: 23.0.94; Printing error on HP Laserjet 6L
  2009-06-01 11:34                 ` James Cloos
@ 2009-06-01 12:12                   ` Christoph Conrad
  0 siblings, 0 replies; 21+ messages in thread
From: Christoph Conrad @ 2009-06-01 12:12 UTC (permalink / raw)
  To: James Cloos; +Cc: 3420

Hi Jim,

> I tried it on a debian sid box, using the version of emacs-cvs
> available from the deb archive at http://emacs.orebokech.com and was
> unable to duplicate.

Maybe it is a very unusual and rare combination on my GNU/Linux system.
I do not insist on progressing.

Regards,
Christoph





^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-06-01 12:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-30  8:36 bug#3420: 23.0.94; Printing error on HP Laserjet 6L Christoph Conrad
2009-05-30  9:29 ` Eli Zaretskii
2009-05-31  0:35   ` Christoph Conrad
2009-05-31  4:06     ` Jason Rumney
2009-05-31  6:16       ` Christoph Conrad
2009-05-31 10:03         ` Eli Zaretskii
2009-05-31 10:19           ` Christoph Conrad
2009-05-31 11:05             ` Eli Zaretskii
2009-05-31 12:21             ` Andreas Schwab
2009-05-31 12:37               ` Eli Zaretskii
2009-05-31 14:08                 ` Andreas Schwab
2009-05-31 15:39               ` Christoph Conrad
2009-05-31 15:52                 ` Andreas Schwab
2009-05-31 10:41           ` Christoph Conrad
2009-05-31 16:36             ` James Cloos
2009-05-31 19:08               ` Christoph Conrad
2009-06-01 11:34                 ` James Cloos
2009-06-01 12:12                   ` Christoph Conrad
2009-05-31 10:57           ` Christoph Conrad
2009-05-31 11:06             ` Eli Zaretskii
2009-05-31 15:37               ` Christoph Conrad

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).