home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / i18nv102.zip / SAMPLE / VERSION / READ.ME < prev    next >
Text File  |  1995-09-19  |  4KB  |  102 lines

  1.  
  2. ===============================================================================
  3.                   Internationalization (I18N) For OS/2                 
  4. ===============================================================================
  5.  
  6.                 Copyright IBM Corporation -- 1993, 1994, 1995
  7.  
  8. DISCLAIMER: This I18N package has been made available solely to gauge OS/2
  9. developer interest in the industry standard XPG4 internationalization 
  10. programming model. This does not mean that IBM will introduce a product based
  11. on the contents of this package. This package is not a full implementation of 
  12. the X/Open XPG4 specification and does not make any claims of XPG4 branding. 
  13. It implements only the portions of the XPG4 specification which deal with 
  14. internationalization.
  15.  
  16. X/Open is a trademark of the X/Open Company Limited.
  17.  
  18. ===============================================================================
  19.  
  20.  
  21. /************************/
  22. /***     Contents     ***/
  23. /************************/
  24.  
  25. 1.  Overview
  26. 2.  Files in this directory
  27. 3.  How to run the sample program
  28. 4.  How to compile the sample program
  29.  
  30.  
  31. 1.  Overview
  32. ============
  33.  
  34. The sample program in this directory shows how to extract the version inform-
  35. mation from the setlocx.dll.
  36.  
  37.  
  38. 2.  Files in this directory
  39. ===========================
  40.  
  41. File            Purpose
  42. ------------------------------------------------------------------------------
  43. version.c         Source code for the version sample program.
  44. version.def       Definition file needed for compiling the program.
  45. version.mak       Make file used to compile the sample.
  46. version.exe       Compiled version of the version sample.
  47.  
  48. build.cmd       A command file which will compile and link the sample program.
  49. read.me         This file.
  50.  
  51.  
  52. 3.  How to run the sample program
  53. =================================
  54.  
  55. The following steps show how the program can be run.
  56.  
  57.      1) Run the \i18n\bin\new_vars command file (or have the environment
  58.         variables already set).
  59.  
  60.      2) Set the value of either LC_ALL or LANG to: en_us (US English).
  61.  
  62.           Ex:   set LANG=en_us
  63.  
  64.      3) Execute the version.exe program.
  65.  
  66.           Ex:   version
  67.  
  68.      4) The output from the program should be:
  69.  
  70.           Locale for monetary: ENUS437
  71.  
  72.           Value is 12345.6789    Symbol-less format 12345.68
  73.           Value is -12.6789      International format USD 12.6789-
  74.           Value is 45.6789       National format $0000045.68
  75.  
  76.      5) Experiment with changing the values of the LANG environment
  77.         variable.  Try the fr_fr locale to see the difference in the
  78.         results.  Note: You may wish to change the codeset of OS/2
  79.         to 850 before running this program with the french locale.
  80.         This can be done with the 'chcp' command:
  81.  
  82.           Ex: chcp 850
  83.  
  84.         When you are finished, change the codepage back to 437.
  85.  
  86.  
  87. 4.  How to compile the sample program
  88. =====================================
  89.  
  90. NOTE: The sample program is already compiled for you.  If you want to see the
  91.  behavior of the program, you can just run it.  The following instructions
  92.  are needed only if you want to modify the program and recompile it.
  93.  
  94. To compile the sample application:
  95.  
  96.      1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
  97.         correctly on your system.
  98.  
  99.      2) cd to the directory which contains the is source files.
  100.  
  101.      3) Type "build" at the command prompt.
  102.