home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.28 / text0100.txt < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.6 KB  |  40 lines

  1. Submitted-by: mskuhn@immd4.informatik.uni-erlangen.de (Markus Kuhn)
  2.  
  3. How UCS-2 files have to be handeled under future OS versions (e.g. UNIX)
  4. seems to be quite obvious:
  5.  
  6.   - Every UCS-2 file begins with feff. If it begins with fffe, than library
  7.     routines will activate a 'byte order swap mode' that corrects the
  8.     data from an otherendian machine.
  9.  
  10.   - In this way, every UNIX tool (cc, cat, ...) can easily determine,
  11.     how the file has to be interpreted, because everything starting
  12.     with something else is considered to be an 8-bit Latin 1 encoded
  13.     file (if it is interpreted as a 'text file' at all).
  14.  
  15. But how may UCS-4 files be identified? Do they always begin with 0000feff
  16. and are converted if they begin with fffe0000 or other permutations?
  17. Does ISO 10646 say anything about this or will any future POSIX extension do?
  18.  
  19. It should be not too complicated to develop C library routines that
  20. are based on new types (lets call them ucs2_t or ucs4_t) that hide
  21. the 8-bit vs. UCS-2 difference completely from the programmer.
  22. With these things once spezified writing 16-bit orientated operating systems
  23. and applications should be quite simple. I think we need a standard for
  24. this NOW, otherwise UCS-2 files won't be as simple to handle as ASCII
  25. files.
  26.  
  27. What do you think?
  28.  
  29. Markus
  30.  
  31. -- 
  32. Markus Kuhn, Computer Science student -=-=- University of Erlangen, Germany
  33. Internet: mskuhn@immd4.informatik.uni-erlangen.de  |  X.500 entry available
  34. -A distributed system is one in which the failure of a computer you didn't-
  35. -even know existed can render your own computer unusable. (Leslie Lamport)-
  36.  
  37.  
  38. Volume-Number: Volume 28, Number 102
  39.  
  40.