Skip to content

libicu autodetect doesn't work in Ubuntu14.04#876

Open
psalic wants to merge 1 commit into
microsoft:mainfrom
psalic:main
Open

libicu autodetect doesn't work in Ubuntu14.04#876
psalic wants to merge 1 commit into
microsoft:mainfrom
psalic:main

Conversation

@psalic

@psalic psalic commented Jun 15, 2026

Copy link
Copy Markdown

Hi,

It showed that libicu autodetect doesn't work in Ubuntu14.04. I made a fix that solves the issue.
I found that same code can be compiled with apple compiler which would fail. That is reason I added cfg depend.

Otherwise I also made fix for macos if someone likes to use with homebrew licicu. I attach full patch_full.txt.
It compiles with command:
EDIT_CFG_ICUUC_SONAME="libicuuc.dylib" EDIT_CFG_ICUI18N_SONAME="libicui18n.dylib" EDIT_CFG_ICU_RENAMING_AUTO_DETECT="true" RUSTFLAGS="-C link-arg=-Wl,-rpath,/opt/homebrew/opt/icu4c/lib" cargo build --release

Regards, Primoz

@psalic

psalic commented Jun 15, 2026

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@DHowett DHowett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain a little more in depth how this works? We thought you could just set EDIT_CFG_ICUUC_SONAME and friends in any build environment on any version of any Linux distribution. Why is that insufficient on Ubuntu 14.04? (Also: that version is 12 years old, I'm surprised someone is still using it!)

Thanks!

Comment thread crates/edit/src/sys/unix.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants