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
Honestly I don't know why the code is performing cSuffix check twice. Isn't once enough?
Created attachment 148742 [details] document to be used for STR
How idiot I was! I didn't notice that I've forgotten to attach the document
>Honestly I don't know why the code is performing cSuffix check twice. Isn't once enough? I was misrundertanding. the second one is for rIndex, not for rVar. >How idiot I was! typo: How idiot => What an idiot
Submisssion done. https://gerrit.libreoffice.org/#/c/71013/
Tomoyuki Kubota committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/47d25dc5abe000ce751cb1e4dbd1f85f7198ca05%5E%21 tdf#123043 make type character detection unicode-aware It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Marking RESOLVED FIXED