[GH-ISSUE #2981] ssh with frpc could not handle text with special char "°" #2379

Closed
opened 2026-05-05 13:31:49 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @blacksheepaul on GitHub (Jun 15, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2981

Bug Description

I have tried 2 frpc server(ssh with frpc) and 2 normal server, all of frpc server goes wrong and none of normal server goes wrong.

See the video below to know what happend, the only thing I do is moving cursor and write a double quote (").
issue

the code

<?php
printf("c0: [%d.%d °C]\n" . $t0/1000, $t0%1000/100);
$a = '[°]';
$b = '(°)';
$c = '{°}';
$d = 'abc°°°°°°°°°°°°°°°°def';
echo $a . $b . $c . $d . PHP_EOL;

frpc Version

0.42.0

frps Version

0.42.0

System Architecture

frpc: Linux n 5.4.0-117-generic #132-Ubuntu SMP Thu Jun 2 00:39:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
frps: Linux VM-20-10-ubuntu 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Configurations

frpc:

[common]
server_addr = xxxxxxxx
server_port = xxxxxxxx
token = xxxxxxxxxxxxxx

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = xxxxxxx
use_encryption = true
use_compression = true
[web]
type = http
local_port = xxxxxxxxx
custom_domains = xxxxx

frps:

[common]
bind_port = xxxxx
token = xxxxxxxxx
vhost_http_port = xxxx

Logs

No response

Steps to reproduce

See video

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @blacksheepaul on GitHub (Jun 15, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2981 ### Bug Description I have tried 2 frpc server(ssh with frpc) and 2 normal server, all of frpc server goes wrong and none of normal server goes wrong. See the video below to know what happend, the only thing I do is `moving cursor` and `write a double quote (")`. ![issue](https://user-images.githubusercontent.com/26378591/173792727-5073a920-e38a-4ccb-91de-b190e63a8e20.gif) the code ```php <?php printf("c0: [%d.%d °C]\n" . $t0/1000, $t0%1000/100); $a = '[°]'; $b = '(°)'; $c = '{°}'; $d = 'abc°°°°°°°°°°°°°°°°def'; echo $a . $b . $c . $d . PHP_EOL; ``` ### frpc Version 0.42.0 ### frps Version 0.42.0 ### System Architecture frpc: Linux n 5.4.0-117-generic #132-Ubuntu SMP Thu Jun 2 00:39:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux frps: Linux VM-20-10-ubuntu 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ### Configurations frpc: ``` [common] server_addr = xxxxxxxx server_port = xxxxxxxx token = xxxxxxxxxxxxxx [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = xxxxxxx use_encryption = true use_compression = true [web] type = http local_port = xxxxxxxxx custom_domains = xxxxx ``` frps: ``` [common] bind_port = xxxxx token = xxxxxxxxx vhost_http_port = xxxx ``` ### Logs _No response_ ### Steps to reproduce See video ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@blacksheepaul commented on GitHub (Jun 15, 2022):

Seems not issue by frp, I'll keep tracking this.

<!-- gh-comment-id:1156675272 --> @blacksheepaul commented on GitHub (Jun 15, 2022): Seems not issue by frp, I'll keep tracking this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2379
No description provided.