Repository navigation
Fix for Ctrl+* shortcut not working under multi-byte input source in mac osx - #9
Merged
Merged
Conversation
…put source is chosen in mac osx
…put source is chosen in mac osx
Member
|
Hi there, thanks for finding this! Realize it's a pain but we need to get contributor agreements from anyone we take a pull request from. If you find this acceptable then send us a copy of the individual or corporate agreement (as appropriate) found here: https://github.com/rstudio/rstudio/downloads. Thanks and apologize again for the hassle. |
jcheng5
added a commit
that referenced
this pull request
Feb 28, 2012
Fix for Ctrl+* shortcut not working under multi-byte input source in mac osx
4 tasks done
gtritchie
added a commit
that referenced
this pull request
Aug 6, 2020
On Centos7 (Desktop), unit tests were failing because global static initialization was causing access to an uninitialized string. Fix by wrapping the static strings in functions. The trigger is here: https://github.com/rstudio/rstudio/blob/e6fd9fd85f9088c13e8b2c5b78176111b4f2b485/src/cpp/core/LogOptions.cpp#L61 The crash stack was: ``` #0 0x000055ed09fbbdbe in std::string::size (this=0x55ed0b7d5188 <rstudio::core::(anonymous namespace)::s_homePathLeafAlias>) at /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/basic_string.h:3817 #1 0x000055ed09fdc60c in std::operator==<char> (__lhs="~/.local/share", __rhs=<error reading variable: Cannot access memory at address 0xffffffffffffffe8>) at /opt/rh/devtoolset-7/root/usr/include/c++/7/bits/basic_string.h:6007 #2 0x000055ed0a97ce4c in rstudio::core::FilePath::resolveAliasedPath (in_aliasedPath="~/.local/share", in_userHomePath=...) at /src/src/cpp/shared_core/FilePath.cpp:476 #3 0x000055ed0a832e7f in rstudio::core::system::xdg::(anonymous namespace)::resolveXdgDir (envVar="XDG_DATA_HOME", defaultDir="~/.local/share", user=..., homeDir=...) at /src/src/cpp/core/system/Xdg.cpp:97 #4 0x000055ed0a833213 in rstudio::core::system::xdg::userDataDir (user=..., homeDir=...) at /src/src/cpp/core/system/Xdg.cpp:135 #5 0x000055ed0a8972ea in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /src/src/cpp/core/LogOptions.cpp:61 #6 0x000055ed0a89740c in _GLOBAL__sub_I_LogOptions.cpp(void) () at /src/src/cpp/core/LogOptions.cpp:347 #7 0x000055ed0aa9580d in __libc_csu_init () #8 0x00007f948396c4e5 in __libc_start_main () from /lib64/libc.so.6 #9 0x000055ed09fb44f5 in _start () ```
4 tasks done
7 tasks
11 tasks
5 tasks
This was referenced Apr 8, 2026
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
... source is chosen in mac osx
When control key is pushed as key modifier, pEv->modifiers() returns MetaModifier instead of ControlModifier under the multi-byte input source, e.g. Romaji. However under the single-byte input source such as U.S., pEv->modifiers() returns ControlModifier as expected.