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 >
Wrap
Text File
|
1996-02-13
|
4KB
|
103 lines
===============================================================================
Internationalization (I18N) For OS/2
===============================================================================
Copyright IBM Corporation -- 1993, 1994, 1995
DISCLAIMER: This package is not a full implementation of the X/Open XPG4
specification and does not make any claims of XPG4 branding. It implements
only the portions of the XPG4 specification which deal with
internationalization.
X/Open is a trademark of the X/Open Company Limited.
===============================================================================
/************************/
/*** Contents ***/
/************************/
1. Overview
2. Files in this directory
3. How to run the sample program
4. How to compile the sample program
5. Notes
1. Overview
============
The sample program in this directory uses the "towupper" and "towlower"
functions to show conversion from upper to lower case for wide characters,
and visa versa.
These functions are culturally sensitive because most locales do not have case
in their alphabets. Further, accented characters must be converted to the
proper character.
2. Files in this directory
===========================
File Purpose
------------------------------------------------------------------------------
ul_w.c Source code for the ul_w sample program.
ul_w.def Definition file needed for compiling the program.
ul_w.mak Make file used to compile the sample.
ul_w.exe Compiled version of the ul_w sample.
build.cmd A command file which will compile and link the sample program.
read.me This file.
3. How to run the sample program
=================================
The following steps show how the program can be run.
1) Run the \i18n\bin\new_vars command file (or have the environment
variables already set).
2) Set the value of either LC_ALL or LANG to: En_US (US English).
Ex: set LANG=En_US
3) Execute the ul_w.exe program.
Ex: ul_w
4) Experiment with changing the values of the LANG environment
variable. Try the Fr_FR locale to see the difference in the
results. Make sure that you change to code set 850 ("chcp 850")
before you run the program in french, as this will properly display
all of the symbols. When you're done, change back to 437.
4. How to compile the sample program
=====================================
NOTE: The sample program is already compiled for you. If you want to see the
behavior of the program, you can just run it. The following instructions
are needed only if you want to modify the setlocale program and recompile it.
To compile the sample application:
1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
correctly on your system.
2) cd to the directory which contains the is source files.
3) Type "build" at the command prompt.
5. Notes
=========
1. Some of the upper case characters for accented characters are not shown
properly in the US 437 code page. If the program were to be run on a
machine running the code page for the locale, the character would display
correctly.
2. Note that these functions are similar to the functions in the "ulcase"
directory, only these operate on wide characters, not characters.