Valid

GB/T 16681-2003Information technology--Chinese interface specifications of open system (English PDF)

信息技术 开放系统中文界面规范

Open the GB/T 16681-2003 preview as PDF

Preview — first pages of GB/T 16681-2003 (full document: 320 pages)

This is a limited preview

Buy now to download the full PDF (320 pages)

Issued by

General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China

Level / Type

National · Recommended

Issue date

November 24, 2003

Implementation date

August 1, 2004

Scope

GB/T 16681-2003 is the English-translated version of 信息技术 开放系统中文界面规范.

GB/T 16681-2003 is the Chinese interface specification for open systems: it defines the application programming interface, the I/O service interface and the graphical interface that a Chinese-language platform has to provide. Clause 4 specifies the internationalisation functions class by class - the standard C multibyte functions, I/O, string handling, printing, locale enquiry, date and time, code conversion, collation, numeric conversion, scanning and locale setting - each with its prototype and behaviour. Annex A, which is normative and runs from page 103 to page 270, is the POSIX Chinese locale definition file built on GB 18030-2000: the character repertoire in its single-byte, double-byte and four-byte parts, the collating order and the code point allocation. It is more than half the document and is what most buyers are after. It replaces GB/T 16681-1996 and the revision is substantial: the character-interface functions were rewritten against ISO/IEC 9899:1990/Amd.1:1995, the graphical functions moved from X11R5 to X11R6, and the locale file moved from GB 2312-1980 to GB 18030-2000. Issued on 24 November 2003, in force since 1 August 2004. Classification: ICS 35.060, CCS L74. The document runs to 320 pages, delivered complete in English translation.

Document preview — GB/T 16681-2003

National Standard of the People's Republic of China

ICS
35.060
Classification
L74
Replacing
GB/T 16681-1996

Issued by: General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China

Contents

  • ForewordIII
  • 1 Scope1
  • 2 Normative references1
  • 3 Terms and definitions1
  • 4 Requirements2
  • 4.1 General requirements2
  • 4.1.1 Conformance to standards2
  • 4.1.2 C language constraints2
  • 4.1.3 Internationalisation / localisation (I18N / L10N) model2
  • 4.1.4 Principles of character processing2
  • 4.1.5 Preamble files3
  • 4.2 Internationalisation3
  • 4.2.1 Standard C multibyte functions3
  • 4.2.2 I/O functions6
  • 4.2.3 String handling functions10
  • 4.2.4 Printing functions15
  • 4.2.5 Querying locale information16
  • 4.2.6 Date and time19
  • 4.2.7 Code conversion23
  • 4.2.8 String collation25
  • 4.2.9 Numeric conversion27
  • 4.2.10 Scanning functions34
  • 4.2.11 Locale setting35
  • Annex A (Normative) POSIX Chinese locale definition file103
  • A.1 Scope103
  • A.2 Degree of conformance103
  • A.3 Parameters and options103
  • A.4 Provisions of GB 18030-2000104
  • A.4.1 Character repertoire104
  • A.4.1.1 Single byte104
  • A.4.1.2 Double byte104
  • A.4.1.3 Four-byte part104
  • A.4.2 Overall structure104
  • A.4.3 Collating order of characters106
  • A.4.4 Code point allocation107
  • A.5 POSIX Chinese locale definition file109
  • Annex B (Informative) Implementation considerations271
  • B.1 Structure and interface specification of the generic input method subsystem271

Foreword

This document was issued on 24 November 2003 by the General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China, and took effect on 1 August 2004.

It replaces GB/T 16681-1996, Information technology - Chinese interface specification of open system. The main changes are as follows:

1. The 77 functions in 16 classes forming the character interface part of the internationalisation functions of the previous edition, which followed UNIX SVR4.0, have been revised against ISO/IEC 9899:1990/Amd.1:1995, Programming languages - C, Amendment 1: C Integrity.

2. The graphical interface functions of the previous edition were based on X11R5 and were out of date; they have been redrafted on X11R6, with reference to a number of implementations.

3. Annex A of the previous edition was a POSIX Chinese locale definition file based on GB 2312-1980. The State now requires the character set of a Chinese system to be based on GB 18030-2000, so a POSIX Chinese locale definition file based on GB 18030-2000 has been prepared and placed in Annex A as a formal part of this document.

4. Several dozen internationalisation character-interface functions specified in LI18NUX2000 but absent from the previous edition have been added, with reference to Linux; they are placed in Annex C.

Annex A is normative; Annexes B and C are informative.

This document was proposed by the Ministry of Information Industry of the People's Republic of China and is under the jurisdiction of the Electronic Industry Standardization Institute of that Ministry.

It was drafted by China Soft Network Technology Co. Ltd and the Electronic Industry Standardization Institute.

Classification: ICS 35.060, CCS L74.

1 Scope

This document defines the application programming interface, the I/O service function interface and the graphical interface of a Chinese platform for open systems.

It applies to the development and application of Chinese platforms for open systems and to the integration of Chinese-processing software based on such an environment.

2 Normative references

The following documents contain provisions which, through reference in this text, constitute provisions of this document. For dated references, subsequent amendments (excluding corrections) or revisions do not apply; parties are nevertheless encouraged to examine whether the latest editions may be used. For undated references, the latest edition applies.

GB/T 1988-1998 Information processing - 7-bit coded character set for information interchange (eqv ISO 646:1991)

GB 2312-1980 Code of Chinese graphic character set for information interchange - Primary set

GB/T 5261-1994 Information processing - Control functions for 7-bit and 8-bit coded character sets (idt ISO 6429:1988)

GB/T 7408-1994 Data elements and interchange formats - Information interchange - Representation of dates and times (eqv ISO 8601:1988)

GB/T 11383-1989 Information processing - 8-bit code structure and coding rules for information interchange (idt ISO 4873:1986)

GB 12345-1990 Code of Chinese ideogram set for information interchange - Supplementary set

GB 13000.1-1993 Information technology - Universal multiple-octet coded character set (UCS) - Part 1 (idt ISO/IEC 10646-1:1993)

GB/T 13846-1992 Vector Chinese characters for graphic information interchange - Fangsong typeface

GB/T 13847-1992 Vector Chinese characters for graphic information interchange - Kaiti typeface

GB/T 13848-1992 Vector Chinese characters for graphic information interchange - Heiti typeface

GB/T 14246.1-1993 Information technology - Portable operating system interface - Part 1: System application program interface (POSIX.1) (idt ISO/IEC 9945-1:1990)

GB/T 15272-1994 Programming languages - C (idt ISO/IEC 9899:1990)

GB 18030-2000 Information technology - Chinese ideograms coded character set for information interchange - Extension for the basic set

ISO/IEC 9945-2:1993 (POSIX.2) Information technology - Portable operating system interface - Part 2: Shell and utilities

XBD5 Single UNIX Specification, Version 2, System Interface Definitions, Issue 5 (The Open Group CAE Specification C605)

3 Terms and definitions

The following terms and definitions apply to this document.

3.1 Multibyte character

A character represented by several bytes.

3.2 Single-byte character

A character represented by one byte.

3.3 Wide character

A character of a fixed width, used for internal processing.

4 Requirements

4.1 General requirements

4.1.1 Conformance to standards
4.1.2 C language constraints
4.1.3 Internationalisation and localisation model
4.1.4 Principles of character processing
4.1.5 Preamble files

4.2 Internationalisation

4.2.1 Standard C multibyte functions
4.2.2 I/O functions
4.2.3 String handling functions
4.2.4 Printing functions
4.2.5 Querying locale information
4.2.6 Date and time
4.2.7 Code conversion
4.2.8 String collation
4.2.9 Numeric conversion
4.2.10 Scanning functions
4.2.11 Locale setting

......
This preview omits tables, figures, formulas and parts of the technical clauses. The complete document — 320 pages — is available in the English PDF.

Referenced standards

Normative references

GB/T 1988-1998 · GB 2312-1980 · GB/T 5261-1994 · GB/T 7408-1994 · GB/T 11383-1989 · GB 12345-1990 · GB 13000.1-1993 · GB/T 13846-1992 · GB/T 13847-1992 · GB/T 13848-1992 · GB/T 14246.1-1993 · GB/T 15272-1994 · ISO/IEC 9945-2:1993 · XBD5 Single

Similar standards

Editions of GB/T 16681

EditionTitleRevisionStatus
GB/T 16681-2003Information technology--Chinese interface specifications of open systemcurrent editionCurrent
GB/T 16681-1996Information technology. Chinese interface specifications of open systemprevious editionSuperseded

This page sells the current edition, GB/T 16681-2003. Earlier editions are listed for reference only.

How to Buy GB/T 16681-2003

  1. 1Add to cart. Click the "Buy GB/T 16681-2003" button on this page. You can add more standards before checkout.
  2. 2Checkout. Enter your email and billing details. Payment is processed securely by Stripe (cards, Apple Pay, Google Pay supported).
  3. 3Instant delivery (0–9 sec). Delivery is automatic: within seconds of payment you'll receive an email with a secure download link. The link stays valid for 72 hours.
  4. 4Invoice included. A tax invoice is attached to the confirmation email. Need a custom invoice? Contact us.

Related Standards

English PDF
320 pages
Instant delivery (0–9 sec)
Invoice included
View Cart

Secure payment via Stripe

Payments accepted

VisaMastercardAmerican ExpressApple PayGoogle PayStripe

GB/T 16681-2003

$4,490.00

$3,815.00for partners