Bug 136893 - Basic-IDE - [File][Save] vs [File][Export Basic] - some characters replaced by ? [Export Basic]
Summary: Basic-IDE - [File][Save] vs [File][Export Basic] - some characters replaced b...
Status: RESOLVED DUPLICATE of bug 139196
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-19 17:26 UTC by Hans-Werner
Modified: 2021-05-25 20:26 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test_Save_vs_ExportBasic_MAKRO.bas (54 bytes, text/plain)
2020-09-19 17:28 UTC, Hans-Werner
Details
Windows 10 - Beta - Unicode UTF-8 (50.83 KB, image/png)
2020-10-04 12:36 UTC, Hans-Werner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Werner 2020-09-19 17:26:47 UTC
Description:
When using [File]>[Export Basic] to save macro code, some chracters are replaced by "?". No problems when using [File]>[Save] or "clipboard" (copy'n'paste).

Steps to Reproduce:
[1] Test OKAY:
+ Start Basic-IDE.
+ Save file "Test_Save_vs_ExportBasic_MAKRO.bas" using [File]>[Save].
+ Finisch Basic-IDE and start Basic-IDE again.
+ Take a look at code line "MsgBox(...)".
[2] Test ERROR:
+ Start Basic-IDE.
+ Save file "Test_Save_vs_ExportBasic_MAKRO.bas" using [File]>[Export Basic].
+ Finisch Basic-IDE and open file the macro was exported to.
+ Take a look at code line "MsgBox(...)".

Actual Results:
[1] Basic-IDE - [File]>[Save] - Symbol "less than" is to be seen.
[2] Basic-IDE - [File]>[Export Basic] - Symbol "less than" is replaced by character "?". 

Expected Results:
[1] Basic-IDE - [File]>[Save] - Symbol "less than" is to be seen.
[2] Basic-IDE - [File]>[Export Basic] - Symbol "less than" should not be replaced by character "?". 


Reproducible: Always


User Profile Reset: No



Additional Info:
Tested using LO6.4.6.2/LO7.0.1.2 @ Windows 10 Home !
Comment 1 Hans-Werner 2020-09-19 17:28:45 UTC
Created attachment 165686 [details]
Test_Save_vs_ExportBasic_MAKRO.bas
Comment 2 Hans-Werner 2020-09-19 17:37:43 UTC
File "Test_Save_vs_ExportBasic_MAKRO.bas":

[1] Bugzilla View: Symbol "less than" is not to be seen !
[2] Bugzilla Download: Symbol "less than" is to be seen !
Comment 3 himajin100000 2020-10-04 07:18:46 UTC
I cannot reproduce.

Version: 7.1.0.0.alpha0+ (x64)
Build ID: f266feaebea39668392e3a3830e20e4670344658
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: ja-JP (ja_JP); UI: en-US
Calc: threaded
Comment 4 Hans-Werner 2020-10-04 11:44:45 UTC
Macro to be saved using [File][Export Basic]:

Sub Test_Save_vs_ExportBasic()
MsgBox("≤")
End Sub

Additional Test [1] - ERROR: Symbol "less than" ( "≤" ) saved as "?"

Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL

Additional Test [2] - ERROR: Symbol "less than" ( "≤" ) saved as "?"

Version: 7.1.0.0.alpha0+ (x64)
Build ID: f266feaebea39668392e3a3830e20e4670344658
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: CL

I can't confirm "Comment 3". Symbol "less than" always replaced by "?" after saving macro using [File][Export Basic].
Comment 7 Hans-Werner 2020-10-04 12:35:43 UTC
Many thanks for the hint: "I have the following RISKY 'Beta: Use Unicode UTF-8 for worldwide language support' turned on.".

I switched "Unicode UTF-8" support on ( see attached file "Windows 10 - Beta - Unicode UTF-8.png" ) and now "[File]>[Export Basic]" works fine with all LO version.

Therfore now I can confirm all your comments.

Greetings from Germany :-))
Comment 8 Hans-Werner 2020-10-04 12:36:28 UTC
Created attachment 166063 [details]
Windows 10 - Beta - Unicode UTF-8
Comment 9 Andreas Heinisch 2021-05-25 20:26:45 UTC

*** This bug has been marked as a duplicate of bug 139196 ***