New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange locale problems in RStudio after update to OsX Mojave #3587
Comments
What do you see in a terminal if you run The diagnostics report contains this:
Are those locales available on your system? In the Language and Region macOS preferences pane, what do you have set as the current region? |
Looks like you cross-posted this. Please don't do this (it duplicates the effort from those who try to help you). https://community.rstudio.com/t/strange-locale-problems-in-r-after-update-to-mojave/15533/6 |
Sorry for cross posting. At the beginning I thought it was an R problem, then I realized it was RStudio specific so I decided to post it as an issue here. en_IT.UTF-8 is not in the list produced by The question now is why RStudio is using this hybrid locale since mac os update. The language in the preference pane is ok and the problem seems limited to RStudio. I also updated RStudio to the last version but nothing changed. |
I know that the issue is closed but I found a workaround. (posted also on https://community.rstudio.com/t/strange-locale-problems-in-r-after-update-to-mojave/15533/7) The problem is confirmed running
I don't really know where these setting come from. The workaround to make everything work is using |
@kevinushey Why the issue was closed? Even if I found a workaround the issue is not solved and is probably RStudio related! |
Thanks. I was able to confirm the issue by changing my laptop's region to Italy and attempting to launch RStudio. We'll try to investigate further and figure out what's going on. |
After setting up the region, the system does update the notion of the locale:
which is odd, since this locale does not exist. I suspect this is where RStudio is getting its notion of the 'default' locale from. |
Running the same code I get it_IT though. And the problem doesn't show up with standalone R. |
I looked into this more deeply; the issue appears to be that some internal macOS APIs ( This should be fixed in the latest daily builds (http://dailies.rstudio.com); we'd appreciate it if you could install and let us know if the problem indeed does appear to be fixed. |
Apparently the problem seems fixed in the daily! Thanks! (OT: when I installed the new version the code font reverted to the default, not a big deal, I just wanted to report it. The other settings seem ok) |
Phew, glad to hear it! I'm not sure what would've caused the code font to revert but if the newly-set code font does persist on new restarts of RStudio then I think it's okay. |
Yep the font stays!
Actually there are some problems with the daily build. At project opening I
see a `?` instead of the `>` in the console and if I launch a command the
session crashes and restart. After restarting everything works. Even
stranger, it doesn't happen with all the projects I tried, but given an
affected project the bug is consistent.
But I don't think you want this issue to become a beta testing thread :D.
If you point me where should I report this I'll be glad to do it.
|
Could you file that as a new issue here on GitHub? Any chance you could share the project sources wherein you're seeing this issue? |
One of them yes, no sensitive data/code yet. how should I do it? just upload the project? |
You can use some cloud service (e.g. Dropbox, OneDrive, Google Drive) to share an archive of the project. |
ok thanks |
I don't know what to say. The problem disappeared, on all project. I'm not able to reproduce it anymore... |
Fix confirmed in RStudio MacOS Desktop 1.1.463. The test was conducted using the following code in a file saved in UTF-8:
The results were
Running this code with English (en_EN), French (fr_FR). and mixed English/French (en_FR). I used French instead of Italian becauseI know how to speak French but not Italian, and I needed a language I understood in order to navigate through menus. If you find that this is still not working, please update the this ticket. Grazie! |
I'm having strange problems with RStudio after updating to OsX Mojave.
When I start up a RStudio project I get:
Then, if I
source()
R files with non-english characters like accented vowels, I get an error if I don't remove theencoding = 'UTF-8'
option.If I use the View function special characters get encoded, so
àèòù
become<c3><a0><c3><a8><c3><b2><c3><b9>
Using plain R I don't get any errors.
How can I solve this? it's pretty annoying especially when save/sourcing R files from RStudio, since it puts
encoding = 'UTF-8'
by default.diagnostics-report.txt
System details
The text was updated successfully, but these errors were encountered: