https://bugs.documentfoundation.org/show_bug.cgi?id=123043

            Bug ID: 123043
           Summary: Type character detection on variable name should be
                    Unicode-aware
           Product: LibreOffice
           Version: 6.3.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
see steps to reproduce

Steps to Reproduce:
1. Open the attached odt(Suffix.odt) file
2. Tools->Macros->Organize Macro->LibreOfficeDev Basic
3. Select Suffix.odt/Standard/Module1
4. Click Edit Button
5. You will find Sub Main(). This subroutine has one variable named "住所" 
,whose meaning is "address" in Japanese".

note: non-ascii character name is possible only when the code has "Option
VBASupport 1"

6. This variable name consists of two characters. U+4F4F and U+6240. 
Also, please note that '@' character, which is used for type character,is
U+0040

Type Characters
https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/data-types/type-characters

7. Select the variable name and Copy it. Then paste the name into "Watch:" in
the bottomside of the IDE and press Enter.

Actual Results:
Variable '住', not '住所', is registered as the watched variable.

Expected Results:
Variable '住所' is registered as the watched variable.


Reproducible: Always


User Profile Reset: No



Additional Info:
possible source code pointers:

https://opengrok.libreoffice.org/xref/core/basctl/source/basicide/baside2b.cxx?r=6256797d#90
https://opengrok.libreoffice.org/xref/core/basctl/source/basicide/baside2b.cxx?r=6256797d#161

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 13279b94080d87dde51bc8b8c669212bf71cacca
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-01-23_04:38:36
Locale: ja-JP (ja_JP); UI-Language: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to