* make unicodechar equivalent to widechar, resolves #12233

git-svn-id: trunk@11830 -
This commit is contained in:
florian 2008-09-27 12:40:42 +00:00
parent 17e7c221fd
commit f64dbd70cf
3 changed files with 15 additions and 1 deletions

1
.gitattributes vendored
View File

@ -8562,6 +8562,7 @@ tests/webtbs/tw12202.pp svneol=native#text/plain
tests/webtbs/tw12214.pp svneol=native#text/plain
tests/webtbs/tw1222.pp svneol=native#text/plain
tests/webtbs/tw1223.pp svneol=native#text/plain
tests/webtbs/tw12233.pp svneol=native#text/plain
tests/webtbs/tw1228.pp svneol=native#text/plain
tests/webtbs/tw1229.pp svneol=native#text/plain
tests/webtbs/tw1250.pp svneol=native#text/plain

View File

@ -351,7 +351,7 @@ Type
PUCS2Char = PWideChar;
PWideString = ^WideString;
UnicodeChar = type WideChar;
UnicodeChar = WideChar;
PUnicodeChar = ^UnicodeChar;
{$ifdef VER2_2}
{ this is only to avoid too much ifdefs in the code }

13
tests/webtbs/tw12233.pp Normal file
View File

@ -0,0 +1,13 @@
program postest;
{$mode objfpc}{$H+}
var
wchar: WideChar;
wstring: WideString;
begin
wchar := 'a';
wstring := 'badc';
writeln(Pos(wchar, wstring));
end.