4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-09-11 03:02:30 +00:00

Add initial Microsoft Teams support

Documentation on https://github.com/42wim/matterbridge/wiki/MS-Teams-setup
This commit is contained in:
Wim
2019-12-26 23:12:28 +01:00
parent 3af0dc3b3a
commit 795a8705c3
3362 changed files with 229502 additions and 22 deletions

View File

@@ -0,0 +1,28 @@
// +build windows
// +build !appengine
package runewidth
import (
"syscall"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32")
procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP")
)
// IsEastAsian return true if the current locale is CJK
func IsEastAsian() bool {
r1, _, _ := procGetConsoleOutputCP.Call()
if r1 == 0 {
return false
}
switch int(r1) {
case 932, 51932, 936, 949, 950:
return true
}
return false
}