home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / i18nv102.zip / SAMPLE / ULCASE / READ.ME < prev    next >
Text File  |  1995-09-19  |  4KB  |  110 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. 5.  Notes
  30.  
  31. 1.  Overview
  32. ============
  33.  
  34. The sample program in this directory uses the "toupper" and "tolower" functions
  35. to show conversion from upper to lower case and visa versa.
  36.  
  37. These functions are culturally sensitive because most locales do not have case
  38. in their alphabets.  Further, accented characters must be converted to the
  39. proper character.
  40.  
  41. Note: Some of the upper case characters for accented characters are not shown
  42.       properly in the US 437 code page.  If the program were to be run on a
  43.       machine running the code page for the locale, the character would display
  44.       correctly.
  45.  
  46.  
  47. 2.  Files in this directory
  48. ===========================
  49.  
  50. File            Purpose
  51. ------------------------------------------------------------------------------
  52. ul.c            Source code for the ul sample program.
  53. ul.def          Definition file needed for compiling the program.
  54. ul.mak          Make file used to compile the sample.
  55. ul.exe          Compiled version of the ul sample.
  56.  
  57. build.cmd       A command file which will compile and link the sample program.
  58. read.me         This file.
  59.  
  60.  
  61. 3.  How to run the sample program
  62. =================================
  63.  
  64. The following steps show how the program can be run.
  65.  
  66.      1) Run the \i18n\bin\new_vars command file (or have the environment
  67.         variables already set).
  68.  
  69.      2) Set the value of either LC_ALL or LANG to: en_us (US English).
  70.  
  71.           Ex:   set LANG=en_us
  72.  
  73.      3) Execute the ul.exe program.
  74.  
  75.           Ex:   ul
  76.  
  77.      4) Experiment with changing the values of the LANG environment
  78.         variable.  Try the fr_fr locale to see the difference in the
  79.         results.  Before you run the program in french, change the
  80.         current codeset "chcp 850" so all of the characters display
  81.         correctly.  When you're done, change the code set back to 437.
  82.  
  83.  
  84. 4.  How to compile the sample program
  85. =====================================
  86.  
  87. NOTE: The sample program is already compiled for you.  If you want to see the
  88.  behavior of the program, you can just run it.  The following instructions
  89.  are needed only if you want to modify the program and recompile it.
  90.  
  91. To compile the sample application:
  92.  
  93.      1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
  94.         correctly on your system.
  95.  
  96.      2) cd to the directory which contains the is source files.
  97.  
  98.      3) Type "build" at the command prompt.
  99.  
  100.  
  101. 5.  Notes
  102. =========
  103. 1. Some of the upper case characters for accented characters are not shown
  104.    properly in the US 437 code page.  If the program were to be run on a
  105.    machine running the code page for the locale, the character would display
  106.    correctly.
  107.  
  108. 2. Note that these functions are similar to the functions in the "ulcase_w"
  109.    directory, only these operate on characters, not wide characters.
  110.