Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with Generic PostScript Driver in Svenska.



Hi All,

I have a framework which is used for enumerating installed print queues
.

The functions that I use for enumerating print queues are
1)PMCreateSession()
2)PMSessionCreatePrinterList()
3)PMSessionSetCurrentPrinter()
4)PMSessionGetCurrentPrinter()
5)PMPrinterGetDeviceURI()
6)PMPrinterGetMakeAndModelName()

The problem is :
I create a print queue in Swedish(Svenska) language by entering the IP
of the printer (LPR/LPD or IPP).  Instead of selecting the correct
printer driver I use Generic PostScript Driver. 

In case of Swedish language, "Generic PostScriptDriver" is localized.
Once PMPrinterGetMakeAndModelName () returns a CFStringRef, the value is
converted into a char using CFStringGetCStringPtr().  The encoding used
is CFStringGetSystemEncoding().
The call to CFStringGetCStringPtr() causes the framework to crash.

While debugging we came across the following message "Variable doesn't
have a valid CFString value".  Has anybody come across a similar
problem?

Could this be the problem with the encoding passed to
CFStringGetCStringPtr()?

Any help in this regard will be helpful.

Thanks.

with rgds,
Manish

This message is free from Virus - IMSS
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.