home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / i18nv104.zip / SAMPLE / ULCASE_W / READ.ME < prev    next >
Text File  |  1996-02-13  |  4KB  |  103 lines

  1.  
  2. ===============================================================================
  3.                   Internationalization (I18N) For OS/2                 
  4. ===============================================================================
  5.  
  6.                 Copyright IBM Corporation -- 1993, 1994, 1995
  7.  
  8. DISCLAIMER: This package is not a full implementation of the X/Open XPG4 
  9. specification and does not make any claims of XPG4 branding. It implements 
  10. only the portions of the XPG4 specification which deal with 
  11. internationalization.
  12.  
  13. X/Open is a trademark of the X/Open Company Limited.
  14.  
  15. ===============================================================================
  16.  
  17.  
  18. /************************/
  19. /***     Contents     ***/
  20. /************************/
  21.  
  22. 1.  Overview
  23. 2.  Files in this directory
  24. 3.  How to run the sample program
  25. 4.  How to compile the sample program
  26. 5.  Notes
  27.  
  28. 1.  Overview
  29. ============
  30.  
  31. The sample program in this directory uses the "towupper" and "towlower"
  32. functions to show conversion from upper to lower case for wide characters,
  33. and visa versa.
  34.  
  35. These functions are culturally sensitive because most locales do not have case
  36. in their alphabets.  Further, accented characters must be converted to the
  37. proper character.
  38.  
  39.  
  40. 2.  Files in this directory
  41. ===========================
  42.  
  43. File            Purpose
  44. ------------------------------------------------------------------------------
  45. ul_w.c          Source code for the ul_w sample program.
  46. ul_w.def        Definition file needed for compiling the program.
  47. ul_w.mak        Make file used to compile the sample.
  48. ul_w.exe        Compiled version of the ul_w sample.
  49.  
  50. build.cmd       A command file which will compile and link the sample program.
  51. read.me         This file.
  52.  
  53.  
  54. 3.  How to run the sample program
  55. =================================
  56.  
  57. The following steps show how the program can be run.
  58.  
  59.      1) Run the \i18n\bin\new_vars command file (or have the environment
  60.         variables already set).
  61.  
  62.      2) Set the value of either LC_ALL or LANG to: En_US (US English).
  63.  
  64.           Ex:   set LANG=En_US
  65.  
  66.      3) Execute the ul_w.exe program.
  67.  
  68.           Ex:   ul_w
  69.  
  70.      4) Experiment with changing the values of the LANG environment
  71.         variable.  Try the Fr_FR locale to see the difference in the
  72.         results.  Make sure that you change to code set 850 ("chcp 850")
  73.         before you run the program in french, as this will properly display
  74.         all of the symbols.  When you're done, change back to 437.
  75.  
  76.  
  77. 4.  How to compile the sample program
  78. =====================================
  79.  
  80. NOTE: The sample program is already compiled for you.  If you want to see the
  81.  behavior of the program, you can just run it.  The following instructions
  82.  are needed only if you want to modify the setlocale program and recompile it.
  83.  
  84. To compile the sample application:
  85.  
  86.      1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
  87.         correctly on your system.
  88.  
  89.      2) cd to the directory which contains the is source files.
  90.  
  91.      3) Type "build" at the command prompt.
  92.  
  93.  
  94. 5.  Notes
  95. =========
  96. 1. Some of the upper case characters for accented characters are not shown
  97.    properly in the US 437 code page.  If the program were to be run on a
  98.    machine running the code page for the locale, the character would display
  99.    correctly.
  100.  
  101. 2. Note that these functions are similar to the functions in the "ulcase"
  102.    directory, only these operate on wide characters, not characters.
  103.