From f3a8250f8861f349290025b7f4545621ac8ae270 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Wed, 22 Feb 2006 10:19:13 +0000 Subject: [PATCH] fix output of postscript on mingw32 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@22536 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 11 ++++++++--- Source/gsc/GSStreamContext.m | 6 +++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 91ec310..dee9443 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,17 +1,22 @@ -2005-02-13 Fred Kiefer +2006-02-22 Richard Frith-Macdonald + + * Source/gsc/GSStreamContext.m: Fix opening of file on mingw32 + Don't log where we are printingf to unless debugging is on. + +2006-02-13 Fred Kiefer * Source/cairo/CairoGState.m (-copyWithZone:): Handle more of the state parameters in copy. * Source/cairo/CairoGState.m (-compositerect:op:): Protect operator setting with save/restore. -2005-02-12 Fred Kiefer +2006-02-12 Fred Kiefer * Source/cairo/CairoGState.m (-compositeGState:...fraction:): Deal with flipped views. Also some cleanup in the whole file and a hack to set alpha. -2005-02-11 Fred Kiefer +2006-02-11 Fred Kiefer * Source/cairo/CairoGState.m (-DPSImage::::::::): Handle missing parameters, row end padding and destroy the temporary image at the diff --git a/Source/gsc/GSStreamContext.m b/Source/gsc/GSStreamContext.m index 3124693..2e434e9 100644 --- a/Source/gsc/GSStreamContext.m +++ b/Source/gsc/GSStreamContext.m @@ -83,8 +83,12 @@ fpfloat(FILE *stream, float f) if (info && [info objectForKey: @"NSOutputFile"]) { NSString *path = [info objectForKey: @"NSOutputFile"]; - NSLog(@"Printing to %s", [path fileSystemRepresentation]); + NSDebugLLog(@"GSContext", @"Printing to %@", path); +#if defined(__MINGW32__) + gstream = _wfopen([path fileSystemRepresentation], L"wb"); +#else gstream = fopen([path fileSystemRepresentation], "w"); +#endif if (!gstream) { NSDebugLLog(@"GSContext", @"%@: Could not open printer file %@",