<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 - API: textRegion.CharLocale uses changed type Variant/Empty to signal mixed languages. Should return .Language = "und" or similar."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=139588">139588</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>API: textRegion.CharLocale uses changed type Variant/Empty to signal mixed languages. Should return .Language = "und" or similar.
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3.0 release
</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>jag@psilosoph.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=168855" name="attach_168855" title="The announced example.">attachment 168855</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=168855&action=edit" title="The announced example.">[details]</a></span>
The announced example.
Testing by user code for the locale of a given text region is complicated by
the fact that the Object property (structure) textRegion.CharLocale is replaced
by a property of type Variant/Empty if no unambiguous result is found (multiple
language e.g.).
Bad idea.
ISO 639 offers "und" or "mul" as values for .Language in the respective cases.
The attached example contains code for the demonstration of the issue, and for
the unnecessary complications it may cause when user code needs to evaluate the
locale related properties of text. The code also demonstrates a workaround.
If old code needs to be protected, a property .CharLocale2 might help.</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>