Problem with macro expansion removing ? characters from macros

Hi,
When compiling the following code (CC ex.cpp), we always receive the error line 28: Error: Unexpected ":" found.
ex.cpp
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#define ONE 1
#define MCheck(n) (n == ONE ? "One" : "???")
#define F1(buff, size, ...) func(buff, size, __VA_ARGS__)
#define F(...) F1(acBuff, sizeof(acBuff), __VA_ARGS__)
void func(char* buff, size_t len, const char* fmt, ...) {
    va_list args;
    va_start(args, fmt);
    size_t nWrote = vsnprintf(buff, len, fmt, args);
    va_end(args);
int main(void) {
    char acBuff[10];
    // Parsed OK
    F1(acBuff, sizeof(acBuff), "%s\n", MCheck(1));
    printf("%s", acBuff);
    // Causes error
    F("%s\n", MCheck(1));
    printf("%s", acBuff);
    return 0;
}This appears to be because the pre-processed code (found using CC -E ex.cpp) has removed the '?' characters from the parsed macro 'F' expansion as shown:
(Code inserted from headers)
#13 "ex.cpp"
void func ( char * buff , size_t len , const char * fmt , ... ) {
va_list args ;
( void ) ( args = ( __va_list ) & __builtin_va_alist ) ;
size_t nWrote = vsnprintf ( buff , len , fmt , args ) ;
( void ) 0 ;
int main ( void ) {
char acBuff [ 10 ] ;
func ( acBuff , sizeof ( acBuff ) , "%s\n" , ( 1 == 1 ? "One" : "???" ) ) ;
printf ( "%s" , acBuff ) ;
func ( acBuff , sizeof ( acBuff ) , "%s\n" , ( 1 == 1 "One" : "???" ) ) ;
printf ( "%s" , acBuff ) ;
return 0 ;
}Is this an error with the compiler, or is there some flag we need to set to ensure the macros are expanded to the correct level?

Bwadly wrote:
Hi Maxim,
Thanks for the feedback.
We are using Solaris 8, so I'm guessing we should use Sun Studio 11? Correct, the latest release that supports Solaris 8 is Sun Studio 11. Be sure to patch both Solaris and Sun Studio once you install it.
BTW, I was able to reproduce the problem using Studio 9 compiler (CC 5.6). Apparently, it got fixed in later versions of compiler - patched version of CC 5.6 does not have it.
Edited by: MaximKartashev on 15.08.2008 12:55

Similar Messages

  • Compatibility problem with macro media flash active control

    I am getting a message on my screen "compatibility problem with macro media flash active control, it isnt compatible with my version of windows (vista).  How can this be fixed?  why am I suddenly getting it now?  I have the latest Adobe flash player installed.
    Trisha

    the latest flash is probably the problem... it's seems that the latest flash has been causing a boat load of issues. i did a system restore to undo the flash and mozilla upgrades and it's still crashing but not as bad as it was with the upgrades.

  • 0CUSTOMER_TEXT - problem with the cyrillic (ukrainian) characters

    Hello,
    Within the framework of Ukrain deployment, I try to extract customer texts (0CUSTOMER_TEXT) and I meet a problem with the cyrillic (ukrainian) characters. All of them are replaced by a '#' (into the table /BI0/TCUSTOMER & into the PSA too).
    From SAP marketplace source, customer text comes from KNA1-NAME1.
    The funniest thing is that the cyrillic (ukrainian) characters extracted by 0CUSTOMER_ATTR are accurately uploaded and specially 0NAME attribute filled by the same r/3 field KNA1-NAME1.
    FYI: I checked the configuration of RFC connections and for all of ABAP connections have the radiobutton UNICODE selected.
    Could someone help me?
    Thanks in advance,
    Samuel

    Hi
    What texts will you get by using T-code: RSA3 in your source system?
    Yaniv

  • Problem with the Non-English Characters

    Hello,
    I have been using Adobe Illustrator  but I have a huge problem with the non-english characters with Standart Fonts. With the Professional font's I have no problem with them. But when I'm using any standart font in font folio library I cannot type any "ğ-İ-ş". I can add those letters in fontlab with the glyphs (scedilla, idotaccent, gbreve). Most of the fonts have those letters already prepeared so I dont even have to redraw. But I can't add those glyph to every single font because I dont have that kind of time and patience. Is there any better solution for this? Or is there any font folio pack that all fonts are PRO.
    I'm looking forward for your answers
    Thanks.

    Joel wrote: I'm told that this is the exact difference between Adobe's Standard and Pro fonts — the Pro fonts have additional glyphs, including those necessary for extended Latin script.
    Exactly. The Pro fonts have at a minimum the Adobe Western 3 character set, which is essentially western European + Adobe CE.
    > Standard fonts just have the basic English character set, with maybe a bit of help for Spanish and French.
    A lot more than that!
    > You're doing Turkish, right? Adobe's coverage for Turkish in its fonts is not great - some of the Pro fonts have Turkish coverage, many do not.
    This is false. Every single Adobe Pro font supports Turkish.
    To be clear:
    All Adobe Standard fonts support the following languages: Afrikaans, Basque, Breton, Catalan, Danish, Dutch, English, Finnish, French, Gaelic, German, Icelandic, Indonesian, Irish, Italian, Norwegian, Portuguese, Sami, Spanish, Swahili and Swedish.
    Adobe Pro fonts support those languages, plus AT LEAST: Croatian, Czech, Estonian, Hungarian, Latvian, Lithuanian, Polish, Romanian, Serbian (Latin), Slovak, Slovenian and Turkish. Some Pro fonts have more language support than this, such as Greek and/or Cyrillic, and additional extended Latin.
    See: http://www.adobe.com/type/browser/info/charsets.html
    Cheers,
    T

  • Problem with:  select 'c' as X from dual

    Problem with 'select 'c' as X from dual'
    I get 2 different results when I execute the above with SQLPlus (or java) depending on the instance I am connected to. For one instance the result is a single character and for the other the character is padded with blanks to 32 chars in the SQLPlus window (and java). Does anyone know what database setting causes this to happen? Is it a version issue ?
    Test #1: Oracle 9.2.0.6 - SQLPlus result is padded with blanks
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 10 09:27:58 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> select 'c' as X from dual;
    X
    c
    SQL>
    Test #2 Oracle 9.2.0.1 SQLPlus result is a single character.
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 10 09:29:27 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> select 'c' as X from dual;
    X
    c
    SQL>

    Using 9.2.0.6 On AIX 5.2 I get the single byte result:
    UT1 > select 'c' as X from dual;
    X
    c
    If the databases are on different Oracle Homes you may want to check the sqlplus global logon files for any set commands.
    If you executed the two sql statements from different OS directories you may also want to check your sqlpath for sqlplus .logon files.
    Try issueing clear columns and repeating the statement. Are the results the same?
    HTH -- Mark D Powell --

  • Problem with "farsi" language . Characters is separate.

    android 2.2 . samsung galaxy s i9000 . problem with "farsi" language . Characters is separate. like this :.
    . س ل ا م . ا ی ن ج و ر ی .
    please help.

    fennec-4.0b2.multi.eabi-arm

  • OneKey Recovery 6.0. Problem with back up operating system from recovery cd'ies

    Hello, i have problem with back up operating system from recovery cdies.
    When i acceped start button to backup partition system i get an alert "space not enough"
    I had linux before and i whant change it to windows back. i deleted all ext partitions. I have all unlocated space.I shouldnt have problems.
    Please help me

    I would use something like Partition Magic or Acronis Disk Director to first create a FAT32 partion for your C: Drive where your OS will go and be sure to leave 10GB or so unallocated for the secondary FAT32 Partition where your "factory image" will go. 
    You then create a Logical Drive with the unallocated space and make it hidden (PM or ADD will do this).   Install your OS (preferably Windows XP if you want less problems) and then after you have setup everything the way you want (drivers, applications, etc), then use Acronis True Image to create your "factory restore" image on the hidden partition and activate the Startup Recovery Manager.
    This is the way I do it and it works like a charm!

  • Problems with graphics [link removed]

    Hi everyone.
    I have problems with graphics [link removed] - Ogłoszenia Hrubieszów. Darmowe ogłoszenia Hrubieszów i okolice. If you want to help, please [link removed] help me in diagnosis. THX !

    Explain what exactly the problem is rather than spamming the forum with links. The page looks just fine in Firefox and Chrome.
    Mylenium

  • Problem with Macro Mode on 808 for close up pictur...

    -The 808 have much better video and picture quality both in normal mode and in macro mode than the N8, but not in picture macro mode!
    I took several pictures of very small things using the 808 with full resolution including extremely small text, but in full resolution you can not zoom in, and then you can not get closer because it would get impossible to focus. Then I took several pictures of the same very small things using the 8MP PUREVIEW and zoomed in. Then opened the pictures on my computer using 100% magnification, and the pictures were of the exact same size! And quality wise the pictures taken in 8MP PUREVIEW were slightly better, and in 8MP you see better what you are photographing because of the zoom. So, the software in the case of macro mode doesn’t use the potential of the huge sensor, and that means so much MP FOR NOTHING!
    -Then I had an idea. The N8 has got zoom when in maximum resolution contrary to the 808, and the N8 has got 12MP vs the only 8MP of the 808. So I took several pictures of the same small things including extremely small text, using both the N8 with full zoom at 12MP and the 808 with full zoom at only 8MP. And then opened the pictures on my computer using 100% magnification, and obviously the pictures from the N8 were a little bigger because the N8 has got more MP. But the 808 was lucky, because even with the smaller pictures, the quality was just slightly better, just slightly, so overall you could see a little better what the words were in the case of text pictures than the N8.
    -In conclusion, the 808 has got a way much bigger sensor, but the software in the case of macro pictures does not take advantage of the bigger sensor of the 808. It should be possible to zoom in when in full resolution, or at least it should be possible to use the pureview mode with zooming capabilities at 12MP at least. Or/and it should be possible to focus closer to the small things.

    What kind of 49mm Close-up lens did you use or prefer?
    but its not convenient to carry this everywhere you go unless you are a photographer.
    How do I take macro picture of small worm inside a plastic transparent container? Its very challanging to focus with Nokia 808. I cannot beat my friend who's using Samsung GS 3 can focus easily on droplets on a plastic bottle because there is no such restriction of 15cm distance away of subject. ~really hope got manual focus ~dreaming of it~
    Nokia 808 still give the best sharpness details for far shots but macro with poor focusing and restriction from the software which worry the most for me. If you give me N8 or n808 for macro I will choose N8 together with some macro lens to boost it more closer like an microsope.

  • Problem with Macro Running When Closing a Document

    Hi Folks;
    I'm trying to develop a Visio macro that runs when I close a document, but I've run into a snag...
    The problem is that the code below only works when I press the 'X' in the corner of the document to close it.  If I try to close it using
    File -> Close, I get the error "Run Time Error -2032464741 (86db0c9b) An exception occurred", and the debugger highlights the first 'Application' line.
    I need the code to work regardless of the close operation, and I'm not sure how to make that happen (since I assumed it should've work the same regardless).
    Private Function Document_QueryCancelDocumentClose(ByVal doc As IVDocument) As Boolean
    Document_QueryCancelDocumentClose = True
    If MsgBox("If you made changes, did you UPDATE the Diagram History? (Select Yes if no changes were made)", vbYesNo + vbCritical + vbDefaultButton2, "Warning - DIAGRAM HISTORY UPDATED?") = vbYes Then
    Application.ActiveDocument.Pages.ItemU("Diagram").Layers.Item("Warning").CellsC(4) = 1
    Document_QueryCancelDocumentClose = False
    Else
    Document_QueryCancelDocumentClose = True
    End If
    End Function
    Any help would be appreciated.
    Zang

    I'm betting your typical "try this" response is not what anyone wants.  But since you've chimed in... my problems with the Visio event model are PLENTY.  Print and save events that cannot be cancelled, document close that doesn't fire on application
    close, and Application.BeforeDocumentSaveAs that occurs WAY AFTER the document has been saved are just a few.  (Did Microsoft even test these events??)  The official Microsoft response to ALL of this was, in a word, "repurpose" it. Essentially they
    advocate completely rewriting the actual Save and Print portions of the interface and corresponding logic in Visio by intercepting keystrokes and redirecting ribbon extensibility idMso ="FileSave" and idMso ="FileSaveAs" commands to your own methods. 
    To quote paid support:
    "You may repurpose Save command in Visio as suggested in my previous email, however there is a design limitation that does not allow repurposing Print backstage button.
    In order to achieve Visio Print repurpose, the workaround is to hide the print back stage altogether and plug with custom backstage ribbon xml."
    We now also repurpose idMso="FilePrintQuick", idMso="FilePrintPreview", and idMso="FileClose" customUI commands, but we still had to use the logic above to catch save before closing. 
    Valid methods that work while Visio is active will fail within Application close.  IT IS A BUG IN VISIO.  That is what this post is about.

  • Problems with codepage after refreshing data from XML

    Hello,
    I've created a dashboard with XML connection.
    XML file with new data is created via macro in INPUT.xls Excel file. This INPUT.xls file was created through exporting spreadsheet from Xcelsius and then adding a macro to it, so text data should be this same codepade. Generated XML through macro have no errors and Flash file gets numeric data with no problems.
    But there is other problem with text's codepage. After reload there are some unidentified symbols in place of polish alphabet letters.
    What should I do to make it right? Is this a problem with codepage or something else?
    [Dashboard Before Refresh|http://lh4.ggpht.com/_Q8NK6X6PPLg/TGkLwo3sxZI/AAAAAAAAA_g/mkBiDdM4Gi4/s640/before_refresh.JPG]
    [Dashboard After Refresh|http://lh4.ggpht.com/_Q8NK6X6PPLg/TGkLwSx9fHI/AAAAAAAAA_c/3UeM2Gd3HvA/s640/after_refresh.JPG]
    If you have any idea hot to fix it, please let me know.
    Best regards,
    Bart Dlug

    Hello,
    I have header in my XML as follows:
    <?xml version="1.0" encoding="Windows-1250"?>
    Only then my XML file is displayed correctly in Internet Explorer preview. When I chagne it to UTF-8 I get some errors.
    [XML with windows-1250 codepage|http://lh3.ggpht.com/_Q8NK6X6PPLg/TGkUakDHjlI/AAAAAAAAA_o/lLlJFMcSaFQ/s800/codepage1250.JPG]
    [The same XML with UTF-8|http://lh5.ggpht.com/_Q8NK6X6PPLg/TGkUa8k4vyI/AAAAAAAAA_s/tdcZNqu7-i0/s800/codepage-UTF8.JPG]
    Error message means: Invalid character was found in text content. Error during processing resourcse file:///
    As I wrote before, my data is generated via macro in Excel, so I supose my data in this file has windows default codepage. Am I right?
    Do you think that I problem is XML file?
    Best regards,
    BD

  • Font problem with Montserrat and Maven Pro from google

    Seems like some fonts don't render as they should in Firefox 29.0.1. I tried to use google web fonts like Montserrat and Maven Pro, no problem with downloading but this fonts don't look good.
    I tried to install Montserrat to my Windows 7 (64) and deactivated css so that FF runs the font but same problem occurs.
    A really strange problem is that from my computer at work this fonts don't work from FF or Chrome, all versions of IE is fine.
    At home i have a laptop with same OS and version of FF and from home it works! But not Chrome..
    I have search on the net and at your support site but haven't find any answers yet.
    You can look at http://arenago.axiell.com for your self. Below is troubleshooting information from my version of FF where this problems occurs (Sorry about the Swedish)
    Programfakta
    Namn: Firefox
    Version: 29.0.1
    Användaragent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
    Kraschrapporter för de senaste 3 dagarna
    Alla kraschrapporter
    Tillägg
    Namn: Classic Theme Restorer
    Version: 1.1.8
    Aktiverad: true
    ID: ClassicThemeRestorer@ArisT2Noia4dev
    Namn: Firebug
    Version: 1.12.8
    Aktiverad: true
    ID: [email protected]
    Namn: HostAdmin
    Version: 1.4.9.2
    Aktiverad: true
    ID: {bd54afa8-b14a-4d7a-aecf-37e34e882796}
    Namn: Web Developer
    Version: 1.2.5
    Aktiverad: true
    ID: {c45c406e-ab73-11d8-be73-000a95be3b12}
    Viktiga ändrade inställningar
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 6
    browser.sessionstore.upgradeBackup.latestBuildID: 20140506152807
    browser.startup.homepage: about:blank
    browser.startup.homepage_override.buildID: 20140506152807
    browser.startup.homepage_override.mstone: 29.0.1
    browser.tabs.drawInTitlebar: false
    browser.tabs.onTop: false
    dom.mozApps.used: true
    extensions.lastAppVersion: 29.0.1
    font.default.x-western: sans-serif
    font.internaluseonly.changed: true
    font.name.sans-serif.x-western: Montserrat
    font.name.serif.x-western: Montserrat
    network.cookie.prefsMigrated: true
    network.dnsCacheEntries: 0
    network.dnsCacheExpiration: 0
    places.database.lastMaintenance: 1400218745
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgcolor: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgimages: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_colorspace:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_command:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_downloadfonts: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_duplex: -983728976
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_bottom: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_left: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_right: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_top: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_evenpages: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_footercenter:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerleft: &PT
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerright: &D
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_headercenter:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerleft: &T
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerright: &U
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_in_color: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_bottom: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_left: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_right: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_top: 0.5
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_oddpages: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_orientation: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_page_delay: 50
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_data: 9
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_height: 11,00
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_name:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_type: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_unit: 1
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_width: 8,50
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_plex_name:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution: 1
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution_name:
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_reversed: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_scaling: 1,00
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_shrink_to_fit: true
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_to_file: false
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_bottom: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_left: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_right: 0
    print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_top: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_bgcolor: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_bgimages: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_colorspace:
    print.printer_\\tina\NRG_MP_C3501_PS.print_command:
    print.printer_\\tina\NRG_MP_C3501_PS.print_downloadfonts: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_duplex: -983728976
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_bottom: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_left: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_right: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_edge_top: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_evenpages: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_footercenter:
    print.printer_\\tina\NRG_MP_C3501_PS.print_footerleft: &PT
    print.printer_\\tina\NRG_MP_C3501_PS.print_footerright: &D
    print.printer_\\tina\NRG_MP_C3501_PS.print_headercenter:
    print.printer_\\tina\NRG_MP_C3501_PS.print_headerleft: &T
    print.printer_\\tina\NRG_MP_C3501_PS.print_headerright: &U
    print.printer_\\tina\NRG_MP_C3501_PS.print_in_color: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_bottom: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_left: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_right: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_margin_top: 0.5
    print.printer_\\tina\NRG_MP_C3501_PS.print_oddpages: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_orientation: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_page_delay: 50
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_data: 9
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_height: 11,00
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_name:
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_type: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_unit: 1
    print.printer_\\tina\NRG_MP_C3501_PS.print_paper_width: 8,50
    print.printer_\\tina\NRG_MP_C3501_PS.print_plex_name:
    print.printer_\\tina\NRG_MP_C3501_PS.print_resolution: 1
    print.printer_\\tina\NRG_MP_C3501_PS.print_resolution_name:
    print.printer_\\tina\NRG_MP_C3501_PS.print_reversed: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_scaling: 1,00
    print.printer_\\tina\NRG_MP_C3501_PS.print_shrink_to_fit: true
    print.printer_\\tina\NRG_MP_C3501_PS.print_to_file: false
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_bottom: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_left: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_right: 0
    print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_top: 0
    privacy.cpd.siteSettings: true
    privacy.sanitize.migrateFx3Prefs: true
    privacy.sanitize.timeSpan: 0
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1399495195
    user.js-inställningar
    Din profilmapp innehåller en user.js-fil som inkluderar inställningar som inte har skapats av Firefox.
    Grafik
    Adapter-RAM: 512
    Adapterbeskrivning: NVIDIA GeForce 7950 GT
    Adapterdrivrutin: nvd3dumx,nvd3dum
    ClearType-parametrar: D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ]
    DirectWrite aktiverat: false (6.2.9200.16492)
    Drivrutinsdatum: 1-31-2013
    Drivrutinsversion: 9.18.13.783
    Enhets-ID: 0x0295
    GPU #2 aktiv: false
    Grafikaccelererade fönster: 1/1 Direct3D 9
    Leverantörs-ID: 0x10de
    WebGL-renderare: Google Inc. -- ANGLE (NVIDIA GeForce 7950 GT Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: skia
    AzureContentBackend: cairo
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Tillgänglighet
    Aktiverad: false
    Förhindra tillgänglighet: 0
    Biblioteksversioner
    NSPR
    Förväntad minimiversion: 4.10.3
    Version som används: 4.10.3
    NSS
    Förväntad minimiversion: 3.16 Basic ECC
    Version som används: 3.16 Basic ECC
    NSSSMIME
    Förväntad minimiversion: 3.16 Basic ECC
    Version som används: 3.16 Basic ECC
    NSSSSL
    Förväntad minimiversion: 3.16 Basic ECC
    Version som används: 3.16 Basic ECC
    NSSUTIL
    Förväntad minimiversion: 3.16
    Version som används: 3.16

    Many site issues can be caused by corrupt cookies or cache.<BR><BR>
    Clear the Cache<BR>
    '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''
    <BR><BR>and<BR><BR>
    Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy.'''''<BR>
    Under '''History''', select Firefox will '''Use Custom Settings'''.<BR>
    There is a button on the right side called '''Show Cookies'''.<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Poke around safe web sites and see if there is still a problem. Then restart.
    <BR><BR><BR>
    This may or may not help you;<BR><BR>
    '''''[https://addons.mozilla.org/en-US/firefox/addon/nosquint/?src=external-Add-ons_Manager_Context_Menu-extension NoSquint]'''''<BR><BR>
    NoSquint allows you to adjust the text-only and full-page (both text and images) zoom levels as well as color settings both globally (for all sites) and per site.

  • Problem with creating/viewing PDF's from InDesign CS3

    I have a problem with our PDF workflow and just cannot seem to resolve it.
    The problem is as follows: My coworker and I (both designers running CS3 on iMac's running 10.5.6 Leopard) work daily on producing documents and graphic layouts.
    Internally we can view and print PDF documents we create just fine with no troubles with the exception of our supervisor, who is running a mac with Tiger operating system. Our office environment is both Mac and PC. On may occasions he cannot print PDF's we create. Many times his prints will contain garbled characters, drop italics and formatting, replace fonts, or just print slowly.
    This problem is also happening to our editor who is offsite. This is a fairly serious problem for her, considering her job relies heavily on being able to view and open PDF files we create. She was able to send a PDF file which shows the garbled mess her printer spit out when she printed. Apparently there were pages upon pages of messy garbled text. When documents do print from her, they are usually very slow in printing, taking up to a minute or more to print each page.
    The sample of what she sent me is attached, and can also be found on my MobileMe iDisk at: http://public.me.com/rlcollier (document entitled Print Results.PDF)
    My question really to the community is obviously what might be causing these problems. Its very frustrating not being able to determine if its something we're doing ourselves thats causing some incompatability or corruption in these files, or if its the users systems themselves. I can say that Debra our editor has can have a garbled mess of a 4 page file from us, and then turn around and print a graphic heavy 90 page PDF with ease from Boeing. Our PDF's seem to be the only ones she struggles with. That being said, my inclination is that its something on our end.
    Any ideas of where to start looking? Any help at all would be greatly appreciated and welcomed. Thanks!

    I currently had our editor test printing of some of our files using both Foxit and Adobe Reader (as was suggested) in order to see if either made a difference in her printing ability and here is what she came back with:
    I tried to print out both these pdfs (David's is the one you reworked and Lisa's HESSM-3, both sent yesterday).
    With Adobe:  David's first page printed quickly, but it had errors (part of his pants didn't print, and there's an arbitrary shaded box in the text).  Page 2 didn't print--every time I tried it had a different "offending command" code.  Printing Lisa's HESSM  made it up to page 7 before problems showed up (stock photo only partially printed), and it stopped on page 8 (with the random "offending command" code).
    With Foxit:  Both David's and the HESSM pdfs printed completely and without error...but it took a long time.   David's 2 pages took about 3 to 4 minutes, and HESSM's 16 pages took close to 20 minutes.  The time is in the transfer of data to the printer; the physical printing  goes pretty quickly.
    I cant say that I believe email is the problem, although I cant rule it out. I've tested emailing vs. passing through our workgroup with my supervisor, and it does not make any difference in his ability (or lack of ability) to print our files. He was able to print to a different printer (an HP 4650 as opposed to a 4100) without troubles. He refuses to believe its a printer problem however because PDF files originating from our office are the only ones he has trouble with. Never has he had any trouble with a single PDF file produced from any other source. This is also the case for our editor who only has trouble with PDF files originating from either mine, or my coworkers systems.
    PS: I've attached both files that were referenced by our editor above for viewing/testing.

  • Removing characters from an input data-field

    Hi.
    Is it possible to "Trim Off" characters from a Text Field data, and automatically input them into another Text field?
    Let's say I have the following code :
    *<Field name='telephonenumber'>*
    *<Display class='Text'>*
    *<Property name='title' value='Phone Number in International Format'/>*
    *<Display>*
    *</Field>*
    This code is to input the telephone number in International Format (such as :  +1 234 567 8900)
    Now, lets say that I want to create a second Data Text field for phone number; but, this time, it is for the phone number in LOCAL format.
    In other words, I want to write a code which will AUTOMATICALLY  remove the first 3 or 4 characters from the "International Number",  and input them into the "Local Number"  field.
    This would save me the trouble or writing the number a second time. My code should be able to simply Trim Off the initial "+1 234", and automatically input the remaining "*567 8900"* into the Local Number field.
    How could I accomplish this?
    Thanks

    Based on your code, it looks like you have fields called global.workgsmad (local style) and global.workgsm (international style)
    Assuming your global.workgsm format will always be '+x xxx xxx xxxx' you want to skip the first 6 characters, not 4
    The simplest way to do this is like so:
    <Field name='global.workgsmad'>
       <Expansion>
          <substr>
             <ref>global.workgsm</ref>
             <i>6</i>     <!-- Skip the country code and area code '+x xxx ' -->
             <i>8</i>   <!-- 8 characters were left for the format 'xxx xxxx' -->
          </substr>
       </Expansion>
    </Field>Alternatively, you could change the substr block to read
    <substr s='6' l='8'>
       <ref>global.workgsm</ref>
    </substr>Both formats are valid.
    If the phone number is not a fixed format, you'll have to do something more complicated.
    Jason

  • Removing characters from a String (concats, substrings, etc)

    This has got me pretty stumped.
    I'm creating a class which takes in a string and then returns the string without vowels and without even numbers. Vowels and even characters are considered "invalid." As an example:
    Input: "hello 123"
    Output: "hll 13"
    The output is the "valid" form of the string.
    Within my class, I have various methods set up, one of which determines if a particular character is "valid" or not, and it is working fine. My problem is that I can't figure out how to essentially "erase" the invalid characters from the string. I have been trying to work with substrings and the concat method, but I can't seem to get it to do what I want. I either get an OutOfBoundsException throw, or I get a cut-up string that just isn't quite right. One time I got the method to work with "hello" (it returned "hll") but when I modified the string the method stopped working again.
    Here's what I have at the moment. It doesn't work properly for all strings, but it should give you an idea of where i'm going with it.
    public String getValidString(){
              String valid = str;
              int start = 0;
              for(int i=0; i<=valid.length()-1; i++){
                   if(isValid(valid.charAt(i))==false){
                             String sub1 = valid.substring(start, i);
                             while(isValid(valid.charAt(i))==false)
                                  i++;
                             start=i;
                             String sub2 = valid.substring(i, valid.length()-1);
                             valid = sub1.concat(sub2);
              return valid;
         }So does anybody have any advice for me or know how I can get this to work?
    Thanks a lot.

    Thansk for the suggestions so far, but i'm not sure how to implement some of them into my program. I probably wasn't specific enough about what all I have.
    I have two classes. One is NoVowelNoEven which contains the code for handling the string. The other is simply a test class, which has my main() method, used for running the program.
    Here's my class and what's involved:
    public class NoVowelNoEven {
    //data fields
         private String str;
    //constructors
         NoVowelNoEven(){
              str="hello";
         NoVowelNoEven(String string){
              str=string;
    //methods
         public String getOriginal(){
              return str;
         public String getValidString(){
              String valid = str;
              int start = 0;
              for(int i=0; i<=valid.length()-1; i++){
                   if(isValid(valid.charAt(i))==false){
                             String sub1 = valid.substring(start, i);
                             while(isValid(valid.charAt(i))==false)
                                  i++;
                             start=i;
                             String sub2 = valid.substring(i, valid.length()-1);
                             valid = sub1.concat(sub2);
              return valid;
         public static int countValidChar(String string){
              int valid=string.length();
              for(int i=0; i<=string.length()-1; i++){
                   if(isNumber(string.charAt(i))==false){
                        if((upperVowel(string.charAt(i))==true)||lowerVowel(string.charAt(i))){
                             valid--;}
                   else if(even(string.charAt(i))==true)
                        valid--;
              return valid;
         private static boolean even(char num){
              boolean even=false;
              int test=(int)num-48;
              if(test%2==0)
                   even=true;
              return even;
         private static boolean isNumber(char chara){
              boolean number=false;
              for(int i=0; i<=9; i++){
                   if((int)chara-48==i){
                        number=true;
              return number;
         private static boolean isValid(char chara){
              boolean valid=true;
              if(isNumber(chara)==true){
                   if(even(chara)==true)
                        valid=false;
              if((upperVowel(chara)==true)||(lowerVowel(chara)==true))
                   valid=false;
              return valid;
    }So in my test class i'd have something like this:
    public class test {
    public static void main(String[] args){
         NoVowelNoEven test1 = new NoVowelNoEven();
         NoVowelNoEven test2 = new NoVowelNoEven("hello 123");
         System.out.println(test1.getOriginal());
         //This prints hello   (default constructor string is "hello")
         System.out.println(test1.countValidChar(test1.getOriginal()));
         //This prints 3
         System.out.println(test1.getValidString());
         //This SHOULD print hll
    }

Maybe you are looking for