File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@   TPythonVersionProp = record
196196//  wchar_t is 4 bytes on Linux/OS X/Android but 2 bytes on Windows
197197{ $IFDEF POSIX} 
198198  PWCharT = PUCS4Char;
199-   PPWCharT = PUCS4Char^ ;
199+   PPWCharT = ^PUCS4Char ;
200200  WCharTString = UCS4String;
201201{ $ELSE} 
202202  PWCharT = PWideChar;
@@ -4380,7 +4380,7 @@ procedure TPythonEngine.SetProgramArgs;
43804380  //  and we want to build an array of PWCharT, pointing to valid strings.
43814381  argc := ParamCount;
43824382  SetLength(wargv, argc + 1 );
4383-   //  build the PWideChar  array
4383+   //  build the PWCharT  array
43844384  SetLength(WL, argc+1 );
43854385  for  I := 0  to  argc do  begin 
43864386    { 
@@ -4393,7 +4393,7 @@ procedure TPythonEngine.SetProgramArgs;
43934393    else 
43944394      TempS := ParamStr(I);
43954395    { $IFDEF POSIX} 
4396-     WL := UnicodeStringToUCS4String(TempS);
4396+     WL[Ι]  := UnicodeStringToUCS4String(TempS);
43974397    { $ELSE} 
43984398    WL[I] := UnicodeString(TempS);
43994399    { $ENDIF} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments