Browse Prior Art Database

Language Independent Interfaces for Culturally Sensitive Stream I/O Services

IP.com Disclosure Number: IPCOM000114154D
Original Publication Date: 1994-Nov-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 4 page(s) / 118K

Publishing Venue

IBM

Related People

Rose, WD: AUTHOR [+5]

Abstract

A method for accessing a common set of national language stream I/O services has been disclosed. The access methodology is independent of the programming language chosen (COBOL, FORTRAN, PL/I, RPG and C) and is provided as a set of language independent procedure calls.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 50% of the total text.

Language Independent Interfaces for Culturally Sensitive Stream I/O
Services

      A method for accessing a common set of national language stream
I/O services has been disclosed.  The access methodology is
independent
of the programming language chosen (COBOL, FORTRAN, PL/I, RPG and C)
and is provided as a set of language independent procedure calls.

      The defined set of common NLS stream I/O services provides a
consistent interface to the user without requiring the programmer to
code with a specific culture in mind, and broadens the choices of
operating systems and programming languages for which and in which he
may develop the product.

      These services are keyed off the user's local profile
information which identifies preferences for various presentation
formats of the culturally sensitive information.  The POSIX concept
of 'locale' has been adopted as the means of specifying the
installation's or user's preferences.

      The subject of this disclosure is the adaptation of a
programming language independent interface to these culturally
sensitive stream I/O services.  This will enable the use of these
services from a wider range of programming languages consistently
across a wider range of computing platforms.

      The use of C function prototypes allows the specification of
the argument list as well as the data type of each argument to be
done accurately and concisely in one place.  It also clarifies
whether a parameter is passed by value or reference.

      The services are described as standard procedures, rather than
as functions, because not all programming languages support the use
of function calls.

The main features of the functions, outlined below, include:
  o  the use of the localized information in processing data to
      provide culturally correct results
  o  the acceptance of a localization indicator, in the form of a
      specific named resource, on each invocation
  o  the provision of error handling which gives specific information
      such as the offset into the string where an error occured.  In
      addition, through the use of condition handling, one may be
able
      to program responses to certain error conditions encountered
      during processing of the call.

The following services are provided to date:

NOTE:  In the functions identified below:
  o  The default input stream is the standard input (keyboard or
file)
      as defined for each specific platform.  The default is used if
an
      input stream is not explicitly identified when the function is
      called.
  o  The default output stream is the standard output (console or
      file) as defined for each specific platform.  The default is
used
      if an output stream is not explicitly identified when the
      function is called.
  o  CSFGTWN: Obtain the specified number of wide characters from the
      input stream specifi...