Local-specific currency editor for JSpinner

I found this code a while back that creates a locale-specific currency editor that I can set for a JSpinner. (see below)
Problem is that while the arrows follow the bounds set by the model, the user is allowed to type an invalid value in the text field and the model takes it.
I don't want to make the editor read-only...how do I make it force staying in the bounds of the model?
public static class CurrencyEditor extends DefaultEditor {
     public static final long serialVersionUID = 1L;
     public CurrencyEditor(JSpinner spinner) {
         super(spinner);
         final JFormattedTextField ftf = getTextField();
         ftf.setEditable(true);
         ftf.setFormatterFactory(new DefaultFormatterFactory(
              new CurrencyFormatter()));
         ftf.setHorizontalAlignment(SwingConstants.RIGHT);
     private class CurrencyFormatter extends
          JFormattedTextField.AbstractFormatter {
         public static final long serialVersionUID = 1L;
         public String valueToString(Object object) {
          if (object == null) {
              return "";
          NumberFormat curFormat = NumberFormat.getCurrencyInstance();
          return curFormat.format(object);
         public Object stringToValue(String string) throws ParseException {
          if (string == null || string.trim().length() == 0) {
              return null;
          Number number = null;
          NumberFormat curFormat = NumberFormat.getCurrencyInstance();
          NumberFormat numFormat = NumberFormat.getNumberInstance();
          try {
              number = curFormat.parse(string);
          } catch (ParseException ex) {
              try {
               number = numFormat.parse(string);
              } catch (ParseException ex2) {
               throw ex2;
          return number.doubleValue();
    }

Alright...so SpinnerNumberModel doesn't validate...so, somehow, I guess I have to force my custom editor to validate before applying.

Similar Messages

  • No local currency found for plant and sales org.

    Hi Guru's,
    I am face to a problem that i don't understand.
    I load the standard master data 0PLANT and i have the basic issues : No local currency found for plant and sales org.
    I already saw this error so i check the basics to solve it.
    I respect the comp_code, sales_org and than plant sequence.
    i checkek the routines, no problem.
    for some plants it works. i extract 8 plants 2 works the rest not. the reason is that there is no sales org affected in my PSA table for those plants.
    But (and this is the problem) when i check the SAP source table T001W i can see that plants are corectly affecte to sales organization
    So do you have any idea of my problem ?
    do you know the transaction on ECC to maintain division and sales org affectation
    Thannks
    Cyril

    Hi,
    Pls have a look at this similar post:
    [No Local Currency found in Plant |How can I view the code for a routine in an update rule;
    Hope it helps...
    Regards,
    Ashish

  • Best practice recommendation for locale-specific text/labels

    What is the recommended best practice approach to supporting locale-specific
    text for labels, messages when using Jdeveloper to create applets and applications.
    I am familiar with resource bundles, but wonder if there is a better approach within
    JDeveloper. Are there any plans to enhance this area in 9.0.3?

    I am familiar with resource bundles, but wonder if there is a better approach within
    JDeveloper. Resourcebundles are the java-native way of handling locale-specific texts.
    Are there any plans to enhance this area in 9.0.3? For BC4J, in 9.0.3, all control-hints and custom-validation messages (new feature) are generated in resource-bundles rather than xml-files to make it easier to "extend" for multiple locales.

  • Additional local currency EUR for compyny codes with Currency EUR

    Hello,
    for reporting reasons we would like to add a "second" currency EUR for the comnpany codes that already have EUR as company code currency.
    Is that possible?
    Do you expect difficulties?
    Thanx & Regards
    Britta
    Edited by: Britta Heimann on Mar 2, 2011 9:14 AM

    Hi,
    I know companies having local currency XYZ and second local currency EUR and due to EUR-conversion they have now 1st and 2nd currency EUR.
    But apart from that, what is the idea of having such a scenario? Different currency ex. rate types or translation dates for all foreign currency postings?
    Anyway, from my point of view it is possible...
    Best regards, Christian

  • No local currency found for plant and sales organization     RS_BW_BCT_RPA

    Hi,
    I am new to BI and trying to load master data in '0Plant'.
    I got the error 'No local currency found for plant and sales organization'.
    Can you please tell me , what could be the reson???
    Regards,
    Srikanth.

    Hi,
    Make the changes in the Update rules,
    Go to the currency field and make it as constant.
    It will resolve ur problem
    Cheers,
    RK.

  • Data Loading issue - No local currency found for plant 0001 and sales org

    Hi Guru's,
    I am trying to load data to 0PLANT_ATTR and I am getting the following error message:
    1. No local currency found for plant 0001 and sales organization 0001
    2. Plant 1010 : No sales organization found; Local currency cannot be checked
    I have also maintained the global setting for currencies in RSA1 for that particular Source System.
    Please let me know how to resolve this issue.
    Thanks in advance.

    Hi,
    Refer the lnik and the note mentioned it.
    Re: Problem when storing master data 0PLANT_ATTR-Full (i.e. Full Update)
    With rgds,
    Anil Kumar Sharma .P

  • Change currency format for my Locale

    The default currency format for my locale (es-AR) formats negative currencies like this:
    ($1.232,23)
    I'd like to change it to
    $-1.232,23
    Any ideas on where to start? Where is that format option stored? In windows the currency format is the latter, and I can change it, but Java uses its own... (right?)
    Thanks for your help.

    Thanks, I found the javadoc that sais that.
    If you need to customize the format object, do something like this:
    NumberFormat f = NumberFormat.getInstance(loc);
    if (f instanceof DecimalFormat) {
         ((DecimalFormat) f).setDecimalSeparatorAlwaysShown(true);
    I think it would be nice to be able to customize a Locale information... to avoid the above code and have a more general solution.
    Thanks anyway, if you think of anything else, let me know.
    Bye.

  • Providing locale specific URL for navigation bar entry

    Hi,
    I am using APEX 3.0 on 10gR2 and 9.0.4 app server... I have successfully translated my application, with the exception of navigation bar entry URLs...
    The XLIFF export does not contain entries for the navbar entry URLs, only the labels. I have locale specific URLs for navbar entries (ie french URL, english URL)
    I can't seem to find any information on how to accomplish this... other than removing the navbar, and hard-coding them in the page template...
    Thanks for the help!

    Hi,
    as a workaround. The export will probably never work, because a URL isn't normally considered as language dependent.
    Have you already tried to write the different URLs into application items (which you initialize during login of the user) and reference them in the URL with &YOUR_APPLICATION_ITEM.Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Info on cell editors for specific rows

    Hi all,
    Could anyone tell me how to return different components to be the editors for different rows in a table.
    I have certain rows that will use a checkbox editor and certain rows that will use a formatted textfield editor. I have coded an outline to my custom editor which extends Component and implements TableCellEditor. Any help would be greatly appreciated.
    Regards
    Alan

    Override getCellEditor() for the JTable
        public TableCellEditor getCellEditor(int row, int column) {
            if(row==rowOfmyChoice) //Or whatever Logic You want
                      return new MyCellEditor()
            return super.getCellEditor(row,column);
        }

  • Currency translation for key figure in bex not working.

    Hi friends,
    i want to do currency translation for key figure(invoice value in local currency).
    i have followed the steps as under:
    1st Transferring Global Table Contents: Currencies from R/3 Systems
    2nd than transfer exchange rate - from r/3 to bi
    3 than In SPRO settings of BW there is option "consider translation ratios in translation"
    4th than used transaction RSCUR for creating currency translation type: parameter(exchange rate:m, soure currency fom data records, target currency ISK, time ref: current date)
    5th than in BEX query designer have sated this for key figure
    but when i run query in RSRT, curreny amount not getting convert?
    am i missing any step?
    pl. guide.
    thanks dushyant.

    Hi Dushyant,
    Are these steps followed in Query designer??
    In the Query designer, for that particular key figure property, under Conversion tab >> Currency Translation >> Conversion Type, select the currency translation type you created in RSCUR.
    And in the target currency, select accordingly.
    If you are going to use a variable, use the following link..
    http://help.sap.com/saphelp_nw04/helpdata/en/08/81b98b95e911d4b2ca0050da4c74dc/content.htm
    See also..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
    Hope this helps..!
    -Pradnya
    Edited by: Pradnya Rane on Apr 8, 2009 7:58 AM

  • Foreign currency valuation for GR/IR clearing account is repeatedly posting

    While executing foreign currency valuation (program SAPF100) through T code F.05 the following fields are selected for the spotted rate valuation for currency type 10.
    A)     Valuate G/L account open items
    B)     Evaluate  GR/IR account (GR/IR clearing account is selected)
    C)     Valuate customer open items  
    After execution the valuation postings are repeated  in GR/IR FC valuation Balance sheet adj account while the postings in other accounts occur only once.
    GR/IR FC valuation Balance sheet adjustment account is configured in OB09 for GR/IR account for respective currency type and local currency.
    What could be the reason for repeated postings in FC valuation account?

    I think there is some issue with the process, normally vendor/customer reconciliation account or some liability assets related account which has impact due to foreign currency rate changes needs to be revaluated. I don't understand why you have set up foreign currency valuation for GR/IR account, these are intermediatory account which reflects in system between for example GR and IR.
    I also think that you need more information on foreign currency valuation, basically it happens on a particular key date and gets reversed on key date + 1, because revaluation is only required on a key date for reporting purposes. on the next day it get reversed and actual loss or profit on foreign currency only gets booked on realization.
    Hope this helps!!!
    Murlidhar Khatri

  • How to set numeric filter for JSpinner?

    Hi there,
    I searched the forum but can't find a solution...I'm kind of getting mad!
    Problem is: I have a JSpinner, I must prevent the user to insert any non-numeric value. the accepted input should be in the form <n>.<m>
    where n could be any integer number, m is OPTIONAL and could be a single digit number. Example: 150.2 or 41 or 7.1 etc.
    I set a DocumentFilter on the editor of JSpinner, overriding replace method. Problem is replace method is never called so my filter is not applied and the user is allowed to insert whatever he wants, characters included.
    Here's my code (sorry for the horrible gui, but it's just for some testing.):
    import java.awt.Dimension;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JSpinner;
    import javax.swing.JTextField;
    import javax.swing.SpinnerNumberModel;
    import javax.swing.JSpinner.NumberEditor;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DocumentFilter;
    public class SpinnerTry {
         public final static String REGEX_DOUBLE_NUMBER = "^([0-9]+)(\\.(\\d{1})?)?$";
         private static final Double MIN_PW = 12.0;
         private static final Double MAX_PW = 19.0;
         private static final Double DEFAULT = 15.0;
         private static final Double STEP = 1.00;
         private static final SpinnerNumberModel model = new SpinnerNumberModel(
                   DEFAULT, // initial value
                   MIN_PW, // min
                   MAX_PW, // max
                   STEP);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JSpinner spinner = new JSpinner(model);
              spinner.setPreferredSize(new Dimension(50, 15));
              NumberEditor edit = new NumberEditor(spinner, "#######.#");
              spinner.setEditor(edit);
              JTextField textField = ((JSpinner.DefaultEditor) spinner.getEditor()).getTextField();
              ((AbstractDocument) textField.getDocument()).setDocumentFilter(new MyDocumentFilter());
              frame.getContentPane().add(spinner);
              frame.setSize(new Dimension(200, 200));
              frame.setVisible(true);
         static class MyDocumentFilter extends DocumentFilter {
              public void replace(FilterBypass fb, int offset, int length, String text,
                        AttributeSet attrs) throws BadLocationException {
                   System.out.println("Called replace");
                   String mytext = fb.getDocument().getText(0, offset);
                   mytext += text;
                   if (fb.getDocument().getLength() - 1 > offset) {
                        mytext += fb.getDocument().getText(offset + 1,
                                  fb.getDocument().getLength() - offset);
                   boolean ok = true;
                   ok = Pattern.matches(REGEX_DOUBLE_NUMBER, mytext);
                   if (ok)
                        super.replace(fb, offset, length, text, attrs);
              public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)
                        throws BadLocationException {
                   if (Pattern.matches(REGEX_DOUBLE_NUMBER, string)) {
                        super.insertString(fb, offset, string, attr);
    }Why replace method is not called when inserting somethig into the spinner text field?
    Thanks a lot in advance.
    Paul
    Edited by: the.paul on Jul 27, 2010 1:11 AM

    I found a solution, got inspiration from [http://forums.sun.com/thread.jspa?forumID=57&threadID=5424330] .
    Code:
    import java.awt.Dimension;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    import java.util.regex.Pattern;
    import javax.swing.JFrame;
    import javax.swing.JSpinner;
    import javax.swing.SpinnerNumberModel;
    import javax.swing.JSpinner.NumberEditor;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.DefaultFormatterFactory;
    import javax.swing.text.DocumentFilter;
    import javax.swing.text.NumberFormatter;
    public class SpinnerTry {
         public final static String REGEX_DOUBLE_NUMBER = "^([0-9]+)(\\.(\\d{1})?)?$";
         private static final Double MIN_PW = 12.0;
         private static final Double MAX_PW = 19.0;
         private static final Double DEFAULT = 15.0;
         private static final Double STEP = 1.00;
         private static final SpinnerNumberModel model = new SpinnerNumberModel(
                   DEFAULT, // initial value
                   MIN_PW, // min
                   MAX_PW, // max
                   STEP);
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JSpinner spinner = new JSpinner(model);
              spinner.setPreferredSize(new Dimension(50, 15));
              String decimalFormatPattern = "#######.#";
              NumberEditor edit = new NumberEditor(spinner);
              spinner.setEditor(edit);
              ((NumberEditor) spinner.getEditor()).getTextField().setFormatterFactory(
                    new DefaultFormatterFactory(new MyListFormatter(model, new DecimalFormat(decimalFormatPattern))));
              frame.getContentPane().add(spinner);
              frame.setSize(new Dimension(200, 200));
              frame.setVisible(true);
         static class MyListFormatter extends NumberFormatter {
              private static final long serialVersionUID = -790552903800038787L;
              private final SpinnerNumberModel model;
              private DocumentFilter filter;
              MyListFormatter(SpinnerNumberModel model, NumberFormat format) {
                   super(format);
                   this.model = model;
                   setValueClass(model.getValue().getClass());
              public void setMinimum(Comparable min) {
                   model.setMinimum(min);
              public Comparable getMinimum() {
                   return model.getMinimum();
              public void setMaximum(Comparable max) {
                   model.setMaximum(max);
              public Comparable getMaximum() {
                   return model.getMaximum();
              protected DocumentFilter getDocumentFilter() {
                   if (filter == null) {
                        filter = new MyDocumentFilter();
                   return filter;
         static class MyDocumentFilter extends DocumentFilter {
              public void replace(FilterBypass fb, int offset, int length, String text,
                        AttributeSet attrs) throws BadLocationException {
                   System.out.println("Called replace");
                   String mytext = fb.getDocument().getText(0, offset);
                   mytext += text;
                   if (fb.getDocument().getLength() - 1 > offset) {
                        mytext += fb.getDocument().getText(offset + 1,
                                  fb.getDocument().getLength() - offset);
                   boolean ok = true;
                   ok = Pattern.matches(REGEX_DOUBLE_NUMBER, mytext);
                   if (ok)
                        super.replace(fb, offset, length, text, attrs);
              public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)
                        throws BadLocationException {
                   if (Pattern.matches(REGEX_DOUBLE_NUMBER, string)) {
                        super.insertString(fb, offset, string, attr);
    }That is: define a custom formatter ; the formatter uses the custom DocumentFilter.
    Hope it is useful for some people out there.
    Regards

  • How to set a specific time zone for time channel in DIADEM

    Hi,
    I'd like to know how to autmatically set a specific time zone for time channels in DIADEM.
    For example, I have stored data with corresponding time channel in UTC time on a disk which was collected in another time zone. Now I want to analyze this data and I want the time channel to show the local time in the time zone where the data was collected, and not the time in the local time zone where the computer is located.
    The time channel should also take site local summer/winter time into account. Now I'm running a script that handles it for me which adds or subtract hours according to my input. The problem is that I'm handling data from several different time zones and I'm not located in any of them and when you're running a lot of data over a greater time period, it's easy to make mistakes, especially when it comes to summer/winter time. Is there a any clever solution to this already implemented in Diadem that I have not found? 

    Hi hj77,
    No, I'm sorry, DIAdem has no time zone functionality at all.  I'm afraid you have no choice in DIAdem but to keep running your scripts.  Summer and Winter time are truly tricky, because the rules for when the changes occur are different in different countries and states within countries and also can change from year to year within the SAME country (as they did in the US a few years ago).
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • "error: thread-local storage not supported for this target"

    I have a program that uses the __thread specifier, to be run on a Solaris 9/UltraSprac.
    I am not able to compile it using gcc 3.4.4 or 4.0.4, it emits the msg "error: thread-local storage not supported for this target".
    xz@gamera% gcc -v -Wall -D_REENTRANT -c -o func_stack.o func_stack.c
    Reading specs from /opt/gcc/3.4.4/lib/gcc/sparc-sun-solaris2.8/3.4.4/specs
    Configured with: ../srcdir/configure --prefix=/opt/gcc/3.4.4 --disable-nls
    Thread model: posix
    gcc version 3.4.4
    /opt/gcc/3.4.4/libexec/gcc/sparc-sun-solaris2.8/3.4.4/cc1 -quiet -v -D_REENTRANT -DMESS func_stack.c -quiet -dumpbase func_stack.c -mcpu=v7 -auxbase-strip func_stack.o -Wall -version -o /var/tmp//cc0poHSN.s
    ignoring nonexistent directory "/usr/local/include"
    ignoring nonexistent directory "/opt/gcc/3.4.4/lib/gcc/sparc-sun-solaris2.8/3.4.4/../../../../sparc-sun-solaris2.8/include"
    #include "..." search starts here:
    #include <...> search starts here:
    /opt/gcc/3.4.4/include
    /opt/gcc/3.4.4/lib/gcc/sparc-sun-solaris2.8/3.4.4/include
    /usr/include
    End of search list.
    GNU C version 3.4.4 (sparc-sun-solaris2.8)
            compiled by GNU C version 3.4.4.
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    func_stack.c:16: error: thread-local storage not supported for this target
    func_stack.c:17: error: thread-local storage not supported for this target
    func_stack.c:19: error: thread-local storage not supported for this target
    xs@gamera% gcc -v -D_REENTRANT  -c -o func_stack.o func_stack.c
    Using built-in specs.
    Target: sparc-sun-solaris2.9
    Configured with: /net/clpt-v490-0/export/data/bldmstr/20070711_mars_gcc/src/configure --prefix=/usr/sfw --enable-shared --with-system-zlib --enable-checking=release --disable-libmudflap --enable-languages=c,c++ --enable-version-specific-runtime-libs --with-cpu=v9 --with-ld=/usr/ccs/bin/ld --without-gnu-ld
    Thread model: posix
    gcc version 4.0.4 (gccfss)
    /pkg/gcc/4.0.4/bin/../libexec/gcc/sparc-sun-solaris2.9/4.0.4/cc1 -quiet -v -I. -iprefix /pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/ -D__sparcv8 -D_REENTRANT -DMESS func_stack.c -quiet -dumpbase func_stack.c -mcpu=v9 -auxbase-strip func_stack.o -version -m32 -o /tmp/ccjsdswh.s -r /tmp/cc2w4ZRo.ir
    ignoring nonexistent directory "/pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/../../../../sparc-sun-solaris2.9/include"
    ignoring nonexistent directory "/usr/local/include"
    ignoring nonexistent directory "/usr/sfw/lib/gcc/sparc-sun-solaris2.9/4.0.4/include"
    ignoring nonexistent directory "/usr/sfw/lib/../sparc-sun-solaris2.9/include"
    #include "..." search starts here:
    #include <...> search starts here:
    /pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/include
    /usr/sfw/include
    /usr/include
    End of search list.
    GNU C version 4.0.4 (gccfss) (sparc-sun-solaris2.9)
            compiled by GNU C version 4.0.4 (gccfss).
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    func_stack.c:16: error: thread-local storage not supported for this target
    func_stack.c:17: error: thread-local storage not supported for this target
    func_stack.c:19: error: thread-local storage not supported for this targetJust as comparison, the corresponding output of compiling another file which does not have __thread declaration is as follows:
    xz@gamera% gcc -v -Wall -D_REENTRANT -c -o common.o common.c
    Reading specs from /opt/gcc/3.4.4/lib/gcc/sparc-sun-solaris2.8/3.4.4/specs
    Configured with: ../srcdir/configure --prefix=/opt/gcc/3.4.4 --disable-nls
    Thread model: posix
    gcc version 3.4.4
    /opt/gcc/3.4.4/libexec/gcc/sparc-sun-solaris2.8/3.4.4/cc1 -quiet -v -D_REENTRANT -DMESS common.c -quiet -dumpbase common.c -mcpu=v7 -auxbase-strip common.o -Wall -version -o /var/tmp//cc4VxrLz.s
    ignoring nonexistent directory "/usr/local/include"
    ignoring nonexistent directory "/opt/gcc/3.4.4/lib/gcc/sparc-sun-solaris2.8/3.4.4/../../../../sparc-sun-solaris2.8/include"
    #include "..." search starts here:
    #include <...> search starts here:
    /opt/gcc/3.4.4/include
    /opt/gcc/3.4.4/lib/gcc/sparc-sun-solaris2.8/3.4.4/include
    /usr/include
    End of search list.
    GNU C version 3.4.4 (sparc-sun-solaris2.8)
            compiled by GNU C version 3.4.4.
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    /usr/ccs/bin/as -V -Qy -s -xarch=v8 -o common.o /var/tmp//cc4VxrLz.s
    /usr/ccs/bin/as: Sun WorkShop 6 update 2 Compiler Common 6.2 Solaris_9_CBE 2001/04/02Note that the last 2 lines seem to suggest that a Sun assembler is used as the back-end of gcc. I am not sure whether the failure to compile the first file (with __thread) was due to the incompatibility of this Sun assembler. In the first case, the error msg was emitted before these 2 lines are printed.
    I further read a post about gcc 3.3.3's inability to compile code that has __thread in it, on a HP-UX 11.11: http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1216595175060+28353475&threadId=1148976 The conclusion seems to suggest that "the 2.17 GNU assembler did not support thread local storage" and gcc sees that and thus disallows TLS.
    If the assembler is the culprit, then does anyone know whether this "Sun WorkShop 6 update 2" assembler in my installation can work with TLS? And how come a Sun assembler becomes the back-end of gcc? I read that gas (the GNU assembler) is the default backend of gcc. (How) can one specify the assembler to be used for gcc?
    As an aside, I am able to compile my file on this same Solaris 9/UltraSparc platform using the Sun Studio 12 C Compiler:
    xz@gamera% cc -V -# -D_REENTRANT  -c -o func_stack.o func_stack.c
    cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
    ### Note: NLSPATH = /pkg/SUNWspro/12/prod/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/pkg/SUNWspro/12/prod/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat
    ###     command line files and options (expanded):
    ### -c -D_REENTRANT  -V func_stack.c -o func_stack.o
    /pkg/SUNWspro/12/prod/bin/acomp -xldscope=global -i func_stack.c -y-fbe -y/pkg/SUNWspro/12/prod/bin/fbe -y-xarch=generic -y-xmemalign=8i -y-o -yfunc_stack.o -y-verbose -y-xthreadvar=no%dynamic -y-comdat -xdbggen=no%stabs+dwarf2+usedonly -V -D_REENTRANT  -m32 -fparam_ir -Qy -D__SunOS_5_9 -D__SUNPRO_C=0x590 -D__SVR4 -D__sun -D__SunOS -D__unix -D__sparc -D__BUILTIN_VA_ARG_INCR -D__C99FEATURES__ -Xa -D__PRAGMA_REDEFINE_EXTNAME -Dunix -Dsun -Dsparc -D__RESTRICT -xc99=%all,no%lib -D__FLT_EVAL_METHOD__=0 -I/pkg/SUNWspro/12/prod/include/cc "-g/pkg/SUNWspro/12/prod/bin/cc -V -D_REENTRANT  -c -o func_stack.o " -fsimple=0 -D__SUN_PREFETCH -destination_ir=yabe
    acomp: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12Interestingly, the output no longer mentions the "/usr/ccs/bin/as: Sun WorkShop 6 update 2" assembler.

    Just as another comparison, I compiled a file without __thread on the Solaris 9/UltraSparc platform using gcc 4.0.4. Not surprisingly it worked. But I no longer see the mention of the Sun assembler as in the case of gcc 3.4.4. Nor did I see the mention of "GNU assembler" as in the case of gcc 4.0.4/Solaris 10/x86. Instead, I saw something called "iropt" and "cg". Does anyone know what they are?
    xz@gamera% gcc -v -Wall -D_REENTRANT -c -o common.o common.c
    Using built-in specs.
    Target: sparc-sun-solaris2.9
    Configured with: /net/clpt-v490-0/export/data/bldmstr/20070711_mars_gcc/src/configure --prefix=/usr/sfw --enable-shared --with-system-zlib --enable-checking=release --disable-libmudflap --enable-languages=c,c++ --enable-version-specific-runtime-libs --with-cpu=v9 --with-ld=/usr/ccs/bin/ld --without-gnu-ld
    Thread model: posix
    gcc version 4.0.4 (gccfss)
    /pkg/gcc/4.0.4/bin/../libexec/gcc/sparc-sun-solaris2.9/4.0.4/cc1 -quiet -v -iprefix /pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/ -D__sparcv8 -D_REENTRANT -DMESS common.c -quiet -dumpbase common.c -mcpu=v9 -auxbase-strip common.o -Wall -version -m32 -o /tmp/ccSGJIDD.s -r /tmp/ccKuJz76.ir
    ignoring nonexistent directory "/pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/../../../../sparc-sun-solaris2.9/include"
    ignoring nonexistent directory "/usr/local/include"
    ignoring nonexistent directory "/usr/sfw/lib/gcc/sparc-sun-solaris2.9/4.0.4/include"
    ignoring nonexistent directory "/usr/sfw/lib/../sparc-sun-solaris2.9/include"
    #include "..." search starts here:
    #include <...> search starts here:
    /pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4/include
    /usr/sfw/include
    /usr/include
    End of search list.
    GNU C version 4.0.4 (gccfss) (sparc-sun-solaris2.9)
            compiled by GNU C version 4.0.4 (gccfss).
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    /pkg/gcc/4.0.4/SUNW0scgfss/4.0.4/prod/bin/iropt -F -xarch=v8plus -xchip=generic -O1 -xvector=no -xbuiltin=%none -xcache=generic -Qy -h_gcc -o /tmp/ccUl4mVM.ircg /tmp/ccKuJz76.ir -N/dev/null -is /tmp/ccSGJIDD.s
    /pkg/gcc/4.0.4/SUNW0scgfss/4.0.4/prod/bin/cg -Qy -xarch=v8plus -xchip=generic -OO0 -T3 -Qiselect-C0 -Qrm:newregman:coalescing=0 -xcode=abs32 -xcache=generic -xmemalign=8i -il /pkg/gcc/4.0.4/bin/../lib/gcc/sparc-sun-solaris2.9/4.0.4//gccbuiltins.il -xvector=no -xthreadvar=no%dynamic -xbuiltin=%none -Qassembler-ounrefsym=0 -Qiselect-T0 -Qassembler-I -Qassembler-U -comdat -h_gcc -is /tmp/ccSGJIDD.s -ir /tmp/ccUl4mVM.ircg -oo common.o

  • How to use iWeb as your WYSIWIG editor for HTML

    Yes, it can be done - and as such, it is the best 'free' html editor for the mac, by far.
    design and publish your web page with iWeb. In the end, if you are going to paste the html in an email or some such thing, simpler is better. but don't be afraid to include graphics and colors . . . everything that probably doesn't require javascript (because the email clients are definitely not going to render that).
    then . . . .
    - download the source of the page. (here after referred to as FileName.html)
    - replace any of the local links with the full http:// prefix - especially for images. (this can be done quickly with a simple find and replace)
    - download the css for the page (naming convention is FileName_files/FileName.css in the same directory as the FileName.html file )
    - use the emogirphy tool at pelago design to merge the css style sheet with the html to create inline style tags for the html http://www.pelagodesign.com/sidecar/emogrifier/
    that's it, now you have perfectly useable html that doesn't require style sheets, which you can use for sending emails, or archiving on your own computer. . . whatever you need.
    hope this is helpful - it was for me.

    phrakture wrote:
    Dusty wrote:phrakture is the everything guru.  X11, CLI, VIM, ssh, network, lovemaking, organized crime, kernel hacking, etc.
    arooaroo wrote:Am I the only one wondering how you know this fact?
    You weren't supposed to tell, schnookums!
    AHAHAHAHAHA, that has TOTALLY made my day   

Maybe you are looking for