home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: lewine@cheshirecat.webo.dg.com (Donald Lewine)
-
- In article <1991Nov25.182431.17201@uunet.uu.net>, jfh@rpp386.cactus.org (John F Haugh II) writes:
- |>
- |> I would say that POSIX completely ignored any codeset which was not
- |> 7-bit clean ASCII. The simple issue of 8-bit code points being
- |> mangled by ISTRIP is clear proof of this point. The definition of
- |> this function is in terms of bit widths, rather than character sizes.
- |> Any 8-bit code set (such as the European character sets or even EBCDIC)
- |> are mangled by the translation suggested by ISTRIP.
- POSIX.1 supports ISTRIP because it was historically present in the
- reference systems. Supporting the flag is consistent with the goal
- of breaking as few applications as possible. POSIX.1 Section B.7.1.2.2
- states, "Although the ISTRIP flag is normally superfluous with today's
- terminal hardware and software, it is historically supported. Therefore,
- applications may be using ISTRIP, and there is no technical problem with
- supporting this flag." I could add that removing the ISTRIP flag would
- not cause any of those applications to instantly start supporting
- European character sets or EBCDIC. Leaving the flag in the standard
- does not indicate any bias by the committee or the IEEE.
-
- |>
- |> I am certain that the various groups did give some thought to the
- |> issue, but it really is pretty obvious that 1003.1 completely ignored
- |> any system which uses 8 bit character sets.
- |>
- |> While 1003.1 was off inventing a new tty subsystem, it would have
- |> been nice if they invented an interface for setting any locale-specific
- |> traits of the tty system (a "tcsetlocale()" sort of deal) that would
- |> provide for translations of locale-specific characters (the variously
- |> accented vowels, for example) into something more POSIX-friendly.
- They left all of hooks to add locale-specific processing:
- 7.1.2.1: The members of the [termios] structure are not limited to
- those shown it Table 7-1.
- 7.1.1.9: An implementation may define multibyte sequences that have
- a meaning different from the meaning of the bytes when
- considered individually. Implementations may also
- define additional single-byte functions.
- 7.1.2.5: If IEXTEN is set, implementation-defined functions shall be
- recognized from the input data.
- B.7 (4): None of the basic historical implementations are adequate
- in an international environment. This concern is not
- technically within the scope of POSIX.1, but the goal of
- POSIX.1 was to mandate no unnecessary impediments to
- internationalization.
- B.7.2: Applications should always do a tcgetattr(), save the
- termios structure values returned, and then do a
- tcsetattr() changing only the necessary fields [thus
- preserving all implementation-defined flags].
-
- In short, my reading of POSIX.1 shows that there was a great deal of
- concern with internationalization and that the inclusion of ISTRIP is
- not "clear proof" that "POSIX ignored any codeset which was not
- 7-bit clean ASCII."
-
- --------------------------------------------------------------------
- Donald A. Lewine (508) 870-9008 Voice
- Data General Corporation (508) 366-0750 FAX
- 4400 Computer Drive. MS D112A
- Westboro, MA 01580 U.S.A.
- uucp: uunet!dg!lewine Internet: lewine@cheshirecat.webo.dg.com
-
- Volume-Number: Volume 26, Number 19
-
-