Author: espectador
Date: Sun Mar 8 07:02:38 2015
New Revision: 38385
URL: http://svn.gna.org/viewcvs/gnustep?rev=38385&view=rev
Log:
Fix to load PPD files.
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Source/NSPrinter.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38385&r1=38384&r2=38385&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Sun Mar 8 07:02:38 2015
@@ -1,3 +1,10 @@
+2015-03-08 Germán Arias <[email protected]>
+
+ * Source/NSPrinter.m (-loadPPDAtPath:symbolValues:inclusionSet:):
+ Skip any data that don't conform with the specification, to prevent
+ application get trapped in the loop while. Correction suggested
+ by Fred.
+
2015-03-06 Fred Kiefer <[email protected]>
* Source/NSCollectionView.m (+initialize): Add binding for content.
Modified: libs/gui/trunk/Source/NSPrinter.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSPrinter.m?rev=38385&r1=38384&r2=38385&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSPrinter.m (original)
+++ libs/gui/trunk/Source/NSPrinter.m Sun Mar 8 07:02:38 2015
@@ -1069,6 +1069,11 @@
withScanner: ppdData
withPPDPath: ppdPath];
}
+
+
+ // Skip any other data that don't conform with the specification.
+ [ppdData scanUpToCharactersFromSet: newlineSet
+ intoString: NULL];
}
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs