Skip to content

Commit 7a72872

Browse files
Taojunshenlearn-build-service-prod[bot]huypubEddieBreeveldFran Kelava
authored
Confirm merge from FromPublicMasterBranch to main to sync with https://github.com/MicrosoftDocs/cpp-docs (branch main) (#4843) (#4844)
* Update wctomb-s-wctomb-s-l.md Adding another possible error return. I'm not sure of the document syntax though. * Update 'Connect to your target Linux system in Visual Studio'. Clearly state that Windows' default `ssh-keygen` does not produce valid private keys for use with ConnectionManager/VS, including steps to adjust private keys to conform with it. * Update wctomb-s-wctomb-s-l.md Added a link. * Update wctomb-s-wctomb-s-l.md Added code escape so machine translation doesn't modify EILSEQ --------- Co-authored-by: learn-build-service-prod[bot] <113403604+learn-build-service-prod[bot]@users.noreply.github.com> Co-authored-by: huypub <[email protected]> Co-authored-by: Edward Breeveld <[email protected]> Co-authored-by: Fran Kelava <[email protected]> Co-authored-by: Tyler Whitney <[email protected]> Co-authored-by: Jak Koke <[email protected]>
1 parent 401c9d2 commit 7a72872

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/c-runtime-library/reference/wctomb-s-wctomb-s-l.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The address of a multibyte character.
4444
Size of the buffer *`mbchar`*.
4545

4646
*`wchar`*\
47-
A wide character.
47+
The wide character to convert.
4848

4949
*`locale`*\
5050
The locale to use.
@@ -60,9 +60,11 @@ Error Conditions
6060
| `NULL` | >0 | `EINVAL` | not modified |
6161
| any | >`INT_MAX` | `EINVAL` | not modified |
6262
| any | too small | `EINVAL` | not modified |
63-
63+
6464
If any of the above error conditions occurs, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, `wctomb` returns `EINVAL` and sets `errno` to `EINVAL`.
6565

66+
The return value [`EILSEQ`](../errno-constants.md) indicates that the value passed via the parameter `wchar` is not a valid wide character.
67+
6668
## Remarks
6769

6870
The **`wctomb_s`** function converts its *`wchar`* argument to the corresponding multibyte character and stores the result at *`mbchar`*. You can call the function from any point in any program.

docs/linux/connect-to-your-remote-linux-computer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ If `ssh` isn't already set up and running on your Linux system, follow these ste
8383
| **Passphrase** | Passphrase used with private key selected above |
8484

8585
You can use either a password or a key file and passphrase for authentication. For many development scenarios, password authentication is sufficient, but key files are more secure. If you already have a key pair, it's possible to reuse it. Currently Visual Studio only supports RSA and DSA keys for remote connections.
86+
87+
> [!NOTE]
88+
> If using `ssh-keygen` to create the private key, you must specify the switch `-m pem`, or the key will not be accepted by Visual Studio. If your private key begins with `-----BEGIN OPENSSH PRIVATE KEY-----`, you must convert it with `ssh-keygen -p -f <FILE> -m pem`.
8689
8790
1. Choose the **Connect** button to attempt a connection to the remote computer.
8891

0 commit comments

Comments
 (0)