mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 08:16:32 +03:00
Allow non_snake_case in dc_replace_bad_utf8_chars function
This commit is contained in:
committed by
Floris Bruynooghe
parent
566d255b33
commit
8274c6bf17
@@ -263,6 +263,7 @@ pub unsafe fn dc_unify_lineends(buf: *mut libc::c_char) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* replace bad UTF-8 characters by sequences of `_` (to avoid problems in filenames, we do not use eg. `?`) the function is useful if strings are unexpectingly encoded eg. as ISO-8859-1 */
|
/* replace bad UTF-8 characters by sequences of `_` (to avoid problems in filenames, we do not use eg. `?`) the function is useful if strings are unexpectingly encoded eg. as ISO-8859-1 */
|
||||||
|
#[allow(non_snake_case)]
|
||||||
pub unsafe fn dc_replace_bad_utf8_chars(buf: *mut libc::c_char) {
|
pub unsafe fn dc_replace_bad_utf8_chars(buf: *mut libc::c_char) {
|
||||||
let mut OK_TO_CONTINUE = true;
|
let mut OK_TO_CONTINUE = true;
|
||||||
if buf.is_null() {
|
if buf.is_null() {
|
||||||
|
|||||||
Reference in New Issue
Block a user