diff options
author | paul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-16 14:27:14 +0000 |
---|---|---|
committer | paul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-16 14:27:14 +0000 |
commit | 360ad2171e215b09620be05c5e1dc77eb97e8664 (patch) | |
tree | 0fb6f035c14bb68c1cefd1b56a02d9c2a367bbd5 | |
parent | 2aaa6dac787bcc010ff3ff95d85b7ac56ef03430 (diff) | |
download | fpc-360ad2171e215b09620be05c5e1dc77eb97e8664.tar.gz |
compiler: partly revert r17434 because of a test regression. Also this is delphi compatible (although delphi does not know a {$codepage} directive)
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/cpstrnew@19075 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r-- | compiler/scanner.pas | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/scanner.pas b/compiler/scanner.pas index 9263a11b9b..dc2b43973a 100644 --- a/compiler/scanner.pas +++ b/compiler/scanner.pas @@ -4171,19 +4171,6 @@ In case not, the value returned can be arbitrary. break; end; until false; - //------------------ - { convert existing string to an utf-8 string } - if (not iswidestring) and - (current_settings.sourcecodepage<>default_settings.sourcecodepage) then - begin - if len>0 then - ascii2unicode(@cstringpattern[1],len,patternw) - else - ascii2unicode(nil,len,patternw); - iswidestring:=true; - len:=0; - end; - //------------------- { strings with length 1 become const chars } if iswidestring then begin |