diff options
author | Eike Rathke <er@openoffice.org> | 2001-04-19 12:40:01 +0000 |
---|---|---|
committer | Eike Rathke <er@openoffice.org> | 2001-04-19 12:40:01 +0000 |
commit | e8428df2942f22897a386381b8d668225f32ca76 (patch) | |
tree | 271baa56a6853e942b03a0d619d3fd897b914290 /sc/source/ui/dbgui/asciiopt.cxx | |
parent | 37f79023579266c985ffdbef1b05e51edbc2f59c (diff) |
#86177# unicode assumption except CR,LF,TAB
Diffstat (limited to 'sc/source/ui/dbgui/asciiopt.cxx')
-rw-r--r-- | sc/source/ui/dbgui/asciiopt.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index 79d1297eabaf..83114e172dc8 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: asciiopt.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: er $ $Date: 2001-03-14 16:16:38 $ + * last change: $Author: er $ $Date: 2001-04-19 13:40:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -631,9 +631,19 @@ ScImportAsciiDlg::ScImportAsciiDlg( Window* pParent,String aDatName, UINT16 n; *pDatStream >> n; // Assume that normal ASCII/ANSI/ISO/etc. text doesn't start with - // control characters. + // control characters except CR,LF,TAB if ( (n & 0xff00) < 0x2000 ) - bPreselectUnicode = TRUE; + { + switch ( n & 0xff00 ) + { + case 0x0900 : + case 0x0a00 : + case 0x0d00 : + break; + default: + bPreselectUnicode = TRUE; + } + } pDatStream->Seek( nUniPos ); } for ( j=0; j < SC_ASCIIOPT_PREVIEW_LINES; j++ ) |