Skip to content

Fix for Ctrl+* shortcut not working under multi-byte input source in mac osx - #9

Merged
jcheng5 merged 3 commits into
rstudio:masterfrom
harupiko:master
Feb 28, 2012
Merged

jcheng5 merged 3 commits into
rstudio:masterfrom
harupiko:master

Conversation

@harupiko

Copy link
Copy Markdown
Contributor

... 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.

@jjallaire

Copy link
Copy Markdown
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
@jcheng5
jcheng5 merged commit e1d85ce into rstudio:master Feb 28, 2012
@alaimos alaimos mentioned this pull request Apr 24, 2020
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 ()
```
@gtritchie gtritchie mentioned this pull request Oct 27, 2026
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants