Questions tagged [icu4c]

25 questions
34
votes
4 answers

Install icu4c version 63 with Homebrew

I was trying to start psql but got psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? When I used postgres -D…
ogirginc
  • 4,948
  • 3
  • 31
  • 45
18
votes
1 answer

Two versions of icu4c installed by Homebrew

Whenever I attempted to run npm --version or node --version on my Mac, I was getting the following error: $> node --version dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib Referenced from: /usr/local/bin/node Reason: image…
stevendesu
  • 15,753
  • 22
  • 105
  • 182
5
votes
0 answers

brew install specific version of a package fails

For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error Error: icu4c:…
Ali
  • 97
  • 6
4
votes
1 answer

Import or Symbol not Found Error with polyglot when PyICU and icu4c installed correctly

I'm really struggling with polyglot, pyicu and icu4c - and it seems like I'm not the only one... I'm running Mac OS High Sierra 10.13.6 and python3 with a virtualenv Here are the steps I've taken, largely based on this article: Start from a new…
Nahko
  • 78
  • 10
3
votes
0 answers

Switch icu4c version (Homebrew)

When running composer commands I get an error and it seems I have to change the icu4c version. (At the moment I need a composer command to re(install) - composer global require weprovide/valet-plus) However, when I try to change it using the steps…
2
votes
0 answers

Validating an emoji sequence with ICU4C

Is there any way I can use ICU4C to check if a string is definitely an emoji? Specifically according to these specifications: http://www.unicode.org/reports/tr51/tr51-15.html I can use the regexes or ebnf patterns mentioned there to scan for…
HelloWorld
  • 3,381
  • 5
  • 32
  • 58
2
votes
0 answers

IANA time zone ID to BCP-47 using ICU4C

Given an IANA time zone ID, such as "America/New_York" or "Europe/Lisbon", how can I obtain the corresponding BCP-47 time zone ID, such as "usnyc" or "ptlis", using ICU4C? These values are required to generate Unicode BCP-47 Locale IDs with…
kpozin
  • 25,691
  • 19
  • 57
  • 76
2
votes
2 answers

ICU4C equivalent of LocaleMatcher

Does ICU4C have any equivalent to ICU4J's LocaleMatcher, for finding the best match between an application's set of supported locales and a user's list of preferred locales?
kpozin
  • 25,691
  • 19
  • 57
  • 76
1
vote
0 answers

ICU4C does not tokenize Japanese correctly

I am using ICU4C library to tokenize japanese text into individual words. However tokenization giving wrong results Example: アーティスティック word break into 5 words -> ア , ー, テ, ィ, スティック However this is a single word アーティスティック only. UnicodeString s =…
1
vote
0 answers

icu4c unicharset_extractor error Tesseract font training

I'm trying to train a new font using Tesseract and I'm running into issues. I searched online and could not find anything related to this issue other than those for node reinstallation. The issue I encounter has to do with not having…
ken4ward
  • 2,246
  • 5
  • 49
  • 89
1
vote
0 answers

ICU, uconv doesn't show all encodings

I built and installed icu-69.1. The ICU data I built into shared libraries, with option --with-data-packaging=library. My goal is that windows-1252 encoding included in ICU data file . The desired encodding is listed in…
Lenka
  • 11
  • 1
1
vote
1 answer

macos 10.12 upgrade to icu4c 67.1 failed

I'm using a older iMac which can't upgrade macos to above 10.12. When I do brew upgrade fontforge, it failed at upgraded fontforge dependency icu4c. Following is partial log. Googling didn't return much information, any one had similar issue and…
ecsk
  • 31
  • 1
  • 4
1
vote
1 answer

Unable to extract Unicode symbols from C++ std::string

I am looking to read a C++ std::string, then passing that std::string to a function which would analyse it, then extract Unicode symbols & simple ASCII symbols from it. I searched many tutorials online, but all of them mentioned that standard C++…
dashthird
  • 47
  • 9
1
vote
1 answer

How to copy a (ICU4C) Unicode string to another Unicode string character by character?

I'm trying to use ICU's StringCharacterIterator to copy (and possibly alter) characters from a source string to a destination string. However, I am having unexpected results and am unsure why. I would expect the final line of output of this program…
Dejas
  • 3,511
  • 4
  • 24
  • 36
0
votes
1 answer

charlock_holmes and icu4c LoadError

It can happen with macos that your Rails project using the charlock_holmes gem throws an error like this: /Users/iwan/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in…
Iwan B.
  • 3,982
  • 2
  • 27
  • 18
1
2