vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[curl] Add Unicode support

Open rozdaybeda opened this issue 3 years ago • 5 comments

Describe the pull request

  • What does your PR fix?

    Fixes unicode support for curl

  • Which triplets are supported/not supported? Have you updated the CI baseline?

    windows, No

  • Does your PR follow the maintainer guide?

    Yes

  • If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

    Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

rozdaybeda avatar Jul 19 '22 11:07 rozdaybeda

CLA assistant check
All CLA requirements met.

Should this be added to default features?

m-kuhn avatar Jul 20 '22 06:07 m-kuhn

Should this be added to default features?

I think it should be enabled by default for windows

rozdaybeda avatar Jul 20 '22 15:07 rozdaybeda

@rozdaybeda, Can you please resolve the conflicts against master?

JonLiu1993 avatar Aug 05 '22 08:08 JonLiu1993

@rozdaybeda, I agree with @autoantwort, can you revise it?

JonLiu1993 avatar Aug 08 '22 03:08 JonLiu1993

@rozdaybeda, These two suggestions should be adopted, what do you think? https://github.com/microsoft/vcpkg/pull/25865#discussion_r924470115 https://github.com/microsoft/vcpkg/pull/25865#discussion_r924470405

JonLiu1993 avatar Aug 11 '22 02:08 JonLiu1993

The first one doesn't fit and here's why: #25865 I think it makes sense to add only the second suggestion.

Thanks

rozdaybeda avatar Aug 11 '22 17:08 rozdaybeda

All functions were successfully tested except for feature 'sectransp' in the following triples:

  • x86-windows
  • x64-windows

JonLiu1993 avatar Aug 12 '22 02:08 JonLiu1993

I don't believe we can accept this because it's using a feature to control alternatives: https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/maintainer-guide.md#do-not-use-features-to-control-alternatives-in-published-interfaces

It may make sense to do unconditionally on Windows (which is why I'm not outright closing the PR).

I don't believe anything about this has been addressed.

To be clear, it can never be a requirement for correctness that a feature is not installed.

BillyONeal avatar Aug 23 '22 00:08 BillyONeal

@BillyONeal does it work for you?

if(VCPKG_TARGET_IS_WINDOWS)
    list(APPEND OPTIONS -DENABLE_UNICODE=ON)
endif()

Or would that be better?

vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS 
        "-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
        ${FEATURE_OPTIONS}
        ${OPTIONS}
        ...
	-DENABLE_UNICODE=ON
    OPTIONS_DEBUG
        -DENABLE_DEBUG=ON
)

rozdaybeda avatar Sep 01 '22 07:09 rozdaybeda

@BillyONeal does it work for you?

if(VCPKG_TARGET_IS_WINDOWS)
    list(APPEND OPTIONS -DENABLE_UNICODE=ON)
endif()

It works for me!

@bagder @MarcelRaad @apique Is there any reason we should not just turn this on unconditionally?

BillyONeal avatar Sep 01 '22 22:09 BillyONeal

It doesn't do anything on non-Windows platforms, so turning it on unconditionally shouldn't hurt.

MarcelRaad avatar Sep 02 '22 07:09 MarcelRaad

Thanks for your contribution @rozdaybeda !

BillyONeal avatar Sep 02 '22 20:09 BillyONeal