Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8383983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:18:08+00:00 2026-06-09T17:18:08+00:00

I have been having problems with ICU’s rule-based Transliterator which turned out to be

  • 0

I have been having problems with ICU’s rule-based Transliterator which turned out to be caused by a missing -O2 flag on debug builds using g++ 4.7.1. It was working fine when I did a release build (which had -O2), but when I built my project without that flag for debugging, the Transliterator object would never be created properly.

Transliterator* t = Transliterator::createFromRules(id, rules, UTRANS_FORWARD, parseError, status);

Without optimisation, t is assigned a null pointer and status is set to 32767, which translates to BOGUS UErrorCode when run through ICU’s u_errorName().

The first thing I tried was to remove the -g debug flag from my build, but that made no difference to what createFromRules() returned. Only when I added -O2 did it create the Transliterator object.

Testing indicates that -O1, -O2 and -O3 all work as expected, and only -O0 causes this to happen.

Can someone explain why this should be the case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:18:09+00:00Added an answer on June 9, 2026 at 5:18 pm

    You should not have different results with/without debugging. Can you create a small test case including rules, give the ICU version and OS/platform, and file a ticket? 4.7.1 was released 2 months ago. Could be a compiler bug (ICU has a long history of finding those!!) or latent bug. You can link the bug to this question and vice versa.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on http://lobounce.com.s138810.gridserver.com/ and have been having some problems with the slider which
I am having problems displaying images which have been queried from the database. The
I have been having problems with creating a download list of files for a
I have a PHP application that I have been having some problems with, some
I have been having these really odd problems with Visual Studio 2010. At this
I'm having problems refreshing .Net 2.0 with IIS 6. I have been able to
Lately we been having a lot of problems with our mysql server i have
EDIT I have finally figured out the problem i have been having on my
I have been having problems with this for some time now, and have come
I have been having problems creating a relative layout in XML for a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.