Skip to content

feat(iconv): support //translit transliteration mode #1117

@chaliy

Description

@chaliy

Summary

iconv -f utf-8 -t ascii//translit fails silently — the //translit suffix on the target encoding is not supported.

Reproduction

echo "Héllo Wörld" | iconv -f utf-8 -t ascii//translit
# Expected: "Hello World" (accents transliterated to ASCII)
# Actual: empty output or error

Context

Discovered while running bashblog via bashkit CLI. Bashblog uses iconv with //translit in its filename conversion pipeline to strip diacritics from post titles:

convert_filename="iconv -f utf-8 -t ascii//translit | sed 's/^-*//' | tr [:upper:] [:lower:] | tr ' ' '-' | tr -dc '[:alnum:]-'"

Without //translit, non-ASCII characters in blog post titles produce empty or broken filenames.

Expected behavior

iconv -f utf-8 -t ascii//translit should transliterate non-ASCII characters to their closest ASCII equivalents (e.g., ée, öo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions