From: Finn B. <bc...@us...> - 2001-03-27 17:36:00
|
Update of /cvsroot/jython/jython/Doc In directory usw-pr-cvs1:/tmp/cvs-serv13200 Modified Files: differences.ht Log Message: Added the 'b' open flag explanation. Index: differences.ht =================================================================== RCS file: /cvsroot/jython/jython/Doc/differences.ht,v retrieving revision 2.9 retrieving revision 2.10 diff -C2 -r2.9 -r2.10 *** differences.ht 2001/03/13 20:11:03 2.9 --- differences.ht 2001/03/27 17:35:56 2.10 *************** *** 160,163 **** --- 160,173 ---- gains it can provide.</I> + <p><LI>The 'b' (binary) flag parameter to the open(file, flag) + call have a different meaning for Jython. In addition to the + expected platform depending newline translation, the 'b' flag + also controls the unicode/binary translation of characters with + value > 255. When the 'b' flag is specified, only the low-order half + of each unicode character will written to the file and the high-order + byte will be set to zero when reading from a file. + Without the 'b' option, the unicode charecters will the passed + through the default codec before going to/from the file. + </UL> |