<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>


<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>
<div class="content">

<h3 style="margin-top: 20px; margin-bottom: 10px;">
Ryan Tandy pushed to branch master at <a href="https://salsa.debian.org/openldap-team/openldap">Debian OpenLDAP Maintainers / openldap</a>
</h3>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
Commits:
</h4>
<ul>
<li>
<strong style="font-weight: bold;"><a href="https://salsa.debian.org/openldap-team/openldap/-/commit/c5cae2c64dbf39962548bfce423e61e2c2880b05">c5cae2c6</a></strong>
<div>
<span> by Gioele Barabucci </span> <i> at 2023-01-13T23:35:25+00:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>slapd.scripts-common: Avoid double-UTF8-encoding org name

The `postinst` maintscript of slapd incorrectly encodes organization names
with non-ASCII characters.

The issue is that values received from debconf (already in UTF-8) are
encoded once again via the function `encode_utf8`.

This turns

    "pé" (0x70 0xC3 0xA9 = U+0070, U+00E9)

into

    "pé" (0x70 0xC3 0x8e 0xC2 0xA9 = U+0070, U+00C3, U+00A9)

There are two possible scenarios:

1. If one assumes that the string returned by debconf is UTF-8 encoded
(that is the case in all modern setups), then there is no need for
another round of encoding.

2. If instead, one assumes that the string returned by debconf is not
UTF-8 encoded, then one should also know which encoding it is in, in order
to perform the right conversion.

The current code produces wrong results in both cases.

Closes: #1016185
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
1 changed file:
</h4>
<ul>
<li class="file-stats">
<a href="https://salsa.debian.org/openldap-team/openldap/-/commit/c5cae2c64dbf39962548bfce423e61e2c2880b05#566b5d93790b59fcc6820b75625f83dfe6b0f217">
debian/slapd.scripts-common
</a>
</li>
</ul>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
<a href="https://salsa.debian.org/openldap-team/openldap/-/commit/c5cae2c64dbf39962548bfce423e61e2c2880b05">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://salsa.debian.org">salsa.debian.org</a>. <a href="https://salsa.debian.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://salsa.debian.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://salsa.debian.org/openldap-team/openldap/-/commit/c5cae2c64dbf39962548bfce423e61e2c2880b05"}}</script>


</p>
</div>
</body>
</html>