[Done] PB 6.03 - Linker error

Post bugs related to the IDE here
User_Russian
Addict
Addict
Posts: 1535
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

[Done] PB 6.03 - Linker error

Post by User_Russian »

In PB IDE 6.03, the text of the linker message in the national language is unreadable.Image

Code: Select all

---------------------------
PureBasic - Linker error
---------------------------
error: �������� � �������.
In PB IDE 6.02 there is no problem and the text is displayed correctly.

Code: Select all

---------------------------
PureBasic - Linker error
---------------------------
error: Отказано в доступе.
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: PB 6.03 - Linker error

Post by juergenkulow »

User_Russian
Addict
Addict
Posts: 1535
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PB 6.03 - Linker error

Post by User_Russian »

No, that's another bug.
polink.exe does not use translation from files *.catalog. It uses local language in operating system.

Code: Select all

ErrorCode = 5
ErrorBuffer.s{256}
FormatMessage_(#FORMAT_MESSAGE_FROM_SYSTEM, 0, ErrorCode, 0, @ErrorBuffer, 256, 0)
Debug ErrorBuffer
juergenkulow
Enthusiast
Enthusiast
Posts: 581
Joined: Wed Sep 25, 2019 10:18 am

Re: PB 6.03 - Linker error

Post by juergenkulow »

I tried the following, maybe it could solve the problem:

Code: Select all

;#PB_Program_UTF8 in RunProgramm with #PB_Ascii in OpenConsole in child program for Charaters >=$80 PrintN returns Charaters $FD
son=RunProgram("D:\son.exe","","",#PB_Program_UTF8|#PB_Program_Open|#PB_Program_Read|#PB_Program_Write|#PB_Program_Error)
WriteProgramStringN(son,"Hallo Jürgen.",#PB_UTF8) ; #PB_UTF8   : Write the String as UTF8 (Standard)
If son
  While ProgramRunning(son)
    If AvailableProgramOutput(son)
      s.s=ReadProgramString(son)
      If Len(Output$)<1
        Output$=Hex(Asc(Left(s,1)),#PB_Ascii)+" "+Hex(Asc(Mid(s,14,1)),#PB_Ascii)+" "+s+#CRLF$
      Else   
        Output$ + s +#CRLF$
      EndIf 
    EndIf
  Wend
  CloseProgram(son) 
EndIf
MessageRequester("Father",Output$)
SetClipboardText(Output$)
; FD FD �h, here is J�rgen.
; Hallo J�rgen.
; Hallo Jürgen.

Code: Select all

; Son read ReadConsoleData from stdin and write PrintN, WriteConsoleData with umlauts to stdout
OpenConsole("-- Son",#PB_Ascii) 
;OpenConsole("-- Son", #PB_UTF8 ) 
*p=AllocateMemory(100) 
ReadConsoleData(*p,14)
s.s=PeekS(*p,-1,#PB_UTF8)
MessageRequester("Son",s)
PrintN("Äh, here is Jürgen.")
PrintN(s)
WriteConsoleData(*p,14)
CloseConsole()

CompilerIf #PB_Compiler_ExecutableFormat<>#PB_Compiler_Console
  CompilerError "Please use ExecutableFormat Console."
CompilerEndIf
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: PB 6.03 - Linker error

Post by boddhi »

User_Russian wrote: In PB IDE 6.02 there is no problem and the text is displayed correctly.
This problem was reported here too
Boddhi wrote: I get now the linker warning message "error: Le chemin d?acc?s sp?écifi? est introuvable" (Note: the ? are there to indicate a problem with unicode conversion).
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Done] PB 6.03 - Linker error

Post by Fred »

Already fixed in current release
Post Reply