<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Type character detection on variable name should be Unicode-aware"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123043">123043</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Type character detection on variable name should be Unicode-aware
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.3.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>himajin100000@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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
<a href="https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/data-types/type-characters">https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/data-types/type-characters</a>

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:

<a href="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#90</a>
<a href="https://opengrok.libreoffice.org/xref/core/basctl/source/basicide/baside2b.cxx?r=6256797d#161">https://opengrok.libreoffice.org/xref/core/basctl/source/basicide/baside2b.cxx?r=6256797d#161</a>

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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>