8000 Way to disable 'Warning: Limited encoding support'? · Issue #481 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

Way to disable 'Warning: Limited encoding support'? #481

Closed

Description

@vszakats

This warning is now permanently shown when building without iconv. While understanding the drawbacks, I'd argue that there may be cases/platforms where building against iconv isn't practical or isn't necessary. E.g. on Windows, building iconv is a challenge and even when done, it's a large dependency that needs to be shipped around. In cases where minizip2 is used in a controlled environment with known, or pure-ASCII filenames, it can work well without codepage conversion.

It'd be nice to have a way to avoid this warning and silently fall back to the transparent strncpy() method.

Activity

  1. nmoinvaz commented on May 26, 2020

    @nmoinvaz
    Member

    Do you have any suggestions? Maybe we should only mention this in CMake?

  2. vszakats commented on May 26, 2020

    @vszakats
    ContributorAuthor

    Moving that (a.) to CMake would be nice, or, (b.) implement a #define specifically to enable the non-iconv branch (e.g. MZ_ENCODING_TRANSPARENT), or (c.) a HAVE_NO_ICONV #define which would have the same effect as no HAVE_ICONV, but would suppress the warning.

    [ My preference is (a.), (c.), (b.) ]

  3. nmoinvaz commented on May 26, 2020

    @nmoinvaz
    Member

    I think we should do CMake too. Do you want to do a PR?

  4. vszakats commented on May 26, 2020

    @vszakats
    ContributorAuthor

    I'm not a "CMake-person", so I'd trust yours much better for this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build systemBuild system and script changesfixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0