question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some ads regions are unavailable on Ubuntu after changing system locale

See original GitHub issue

Follow up to https://github.com/brave/brave-browser/issues/5655

Important: the issue does not reproduce when Clean installed Ubuntu thus majority of users will not be affected. More info https://github.com/brave/brave-browser/issues/6560#issuecomment-544678432

On Ubuntu System language determines the ads region. Limited number of locales makes it impossible to enable ads. This is most prominent for Spanish locale, which will disable ads for all Spanish speaking countries.

Steps to Reproduce

  1. Setup system locale on Ubuntu (check below for instructions)
  2. Clean install Brave
  3. Run Brave
  4. Enable rewards
  5. Open brave://rewards

Setting up system locale:

  1. Open Language Support in Ubuntu image
  2. Install Spanish language
  3. Make Spanish default system locale image
  4. Click Apply System-Wide
  5. Click Regional Formats at the top image
  6. Change the Regional Formats to Espanol(Argentina)
  7. Click Apply System-Wide
  8. Restart system

Affected locales: Argentina es_AR Chile es_CL Colombia es_CO Ecuador es_EC Mexico es_MX Peru es_PE Venezuela es_VE

Actual result:

ads are unavailable in this region The locale command shows the following image Locale used to show ads is en_ES Since en_ES is not supported ads region, the ads are unavailable image

Note: It is possible to manually overwrite the system locale before launching Brave (clean install) and that fixes the issue. LANG=es_AR.UTF-8 LANGUAGE=es_AR /usr/bin/brave-browser

Note: the most obvious way to fix it is to use Regional Formats which allows to set the right region.

Expected result:

ads are available Locale used to show ads is es_AR

Reproduces how often:

Always

Brave version (brave://version info)

Brave 0.70.118 Chromium: 78.0.3904.50 (Official Build) (64-bit)
Revision 2accdc52c79976e264cd2694df6db31d1fccd8e8-refs/branch-heads/3904@{#658}
OS Ubuntu 18.04 LTS

Miscellaneous Information:

cc @tmancey @rebron @brave/legacy_qa

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rebroncommented, Oct 25, 2019

@btlechowski I’m going to go ahead and close this one per your last comment.

0reactions
btlechowskicommented, Oct 21, 2019

Good news.

The issue does not reproduce when I clean installed Ubuntu.

Clean installed Ubuntu 19.10, Argentina. Locale is set properly to es_AR image Ads are available: image

Clean installed Ubuntu 18.04 LTS, Argentina. Locale is set properly to es_AR image Ads are available: image

This issue only reproduces when locale is changed to another locale which I think most user will not do.

cc @tmancey

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix my locale issue? - Ask Ubuntu
First run locale to list what locales currently defined for the current user account: $ locale LANG=C LANGUAGE= LC_CTYPE=fi_FI.
Read more >
Locale - Community Help Wiki - Official Ubuntu Documentation
Introduction. Locales customize programs to your language and country. When you installed Ubuntu, you answered some simple questions such as ...
Read more >
How to install/change locale on Debian? - Server Fault
Locales are typically set by uncommenting lines in /etc/locale.gen , after which running locale-gen is required. ... This will generate locales ...
Read more >
Move a VM instance between zones or regions - Google Cloud
During the move, some server-generated properties of your VM and disks change. Properties that change for VMs. The following table describes properties that ......
Read more >
Known Issues - Oracle Help Center
Change compartment end event not emitted for block volumes and boot ... Go SDK cannot automatically find some regions while running in Cloud ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found